Skip to content

Commit

Permalink
try gh command and use env var
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneale committed Mar 26, 2024
1 parent 04e006d commit e0cb2ae
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/autofmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,9 @@ jobs:
git push
- name: Trigger CI
if: steps.git-check.outputs.modified == 'true'
uses: actions/github-script@v6
with:
github-token: ${{ secrets.FTL_AUTOFMT_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'ci.yml',
ref: '${{ github.head_ref }}'
});
env:
HEAD_REF: ${{ github.head_ref }}
GITHUB_TOKEN: ${{ secrets.FTL_AUTOFMT_TOKEN }}
run: |

Check failure on line 41 in .github/workflows/autofmt.yml

View workflow job for this annotation

GitHub Actions / Lint

shellcheck reported issue in this script: SC2086:info:1:30: Double quote to prevent globbing and word splitting [shellcheck]
gh workflow run ci.yml --ref $HEAD_REF

0 comments on commit e0cb2ae

Please sign in to comment.