Skip to content

Commit

Permalink
token
Browse files Browse the repository at this point in the history
  • Loading branch information
falti committed Aug 7, 2024
1 parent 16b1dd3 commit 51cae4a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,24 +120,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: node-options-test
- id: run-custom-action
uses: ./
env:
GH_TOKEN: ${{ github.token }}
with:
path: ./fixtures/.node_options.env
log-variables: true
export-variables: true
- run: |
# Capture the logs of the entire job up to this point

- name: Capture and check logs
run: |
run_id=$(echo $GITHUB_RUN_ID)
job_id=$(echo $GITHUB_JOB)
logs=$(gh run view $run_id --log | grep -A 20 -B 20 "Can't store NODE_OPTIONS output parameter using '\$GITHUB_ENV' command.")
if [ -n "$logs" ]; then
echo "Warning detected: $logs"
exit 1
else
echo "No warning detected related to NODE_OPTIONS"
echo "No warning detected related to NODE_OPTIONS"
exit 1
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash

0 comments on commit 51cae4a

Please sign in to comment.