Skip to content

Commit

Permalink
chore(gh): Pass token for api
Browse files Browse the repository at this point in the history
Signed-off-by: Helio Chissini de Castro <[email protected]>
  • Loading branch information
heliocastro committed Apr 5, 2024
1 parent 0a84e62 commit 4fc0807
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ jobs:
- name: Scheduled docker build
id: check
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: |
# Uses gh API and jq to check is docker is scheduled to run, so tests will be done there
if [[ "$(gh api repos/:owner/:repo/actions/runs --jq '.workflow_runs[] | select(.name == "docker-ort" and (.status == "in_progress" or .status == "queued"))')" != "" ]]; then
if [[ "$(gh api repos/${{ github.repository }}/actions/runs --jq '.workflow_runs[] | select(.name == "ORT Docker Image" and (.status == "in_progress" or .status == "queued"))')" != "" ]]; then
echo "skip=true" >> $GITHUB_OUTPUT
else
echo "skip=false" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 4fc0807

Please sign in to comment.