Skip to content

Commit

Permalink
#512: added needs
Browse files Browse the repository at this point in the history
added trigger_build to needs of check_status
  • Loading branch information
jan-vcapgemini committed Aug 5, 2024
1 parent 563f013 commit 0c5ced0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-for-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
check_status:
runs-on: ubuntu-latest
needs: verify_commit
needs: [ verify_commit, trigger_build ]
if: ${{ needs.verify_commit.outputs.RUN_BUILD == 'false' }}
steps:
- name: Check last workflow status
Expand All @@ -45,7 +45,7 @@ jobs:
last_workflow=$(curl -L -H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/devonfw/IDEasy/actions/workflows/$workflow_filename/runs?per_page=1" | jq -r '.workflow_runs[0]')
"https://api.github.com/repos/${{ github.repository }}/actions/workflows/$workflow_filename/runs?per_page=1" | jq -r '.workflow_runs[0]')
conclusion=$(echo $last_workflow | jq -r '.conclusion')
echo "conclusion=$conclusion" >> $GITHUB_ENV
Expand Down

0 comments on commit 0c5ced0

Please sign in to comment.