Skip to content

Commit

Permalink
debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
maxi418 committed Nov 29, 2024
1 parent 365feb9 commit 14b1258
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,27 @@ jobs:
run: |
if [ -z "env.PR_NUMBER" ]; then
echo "merge_clearance=true" >> "$GITHUB_OUTPUT"
echo "set merge clearance to true"
else
if [[ "${{ contains(env.PR_LABELS, 'prevent_merge') }}" == "true" ]]; then
echo "merge_clearance=false" >> "$GITHUB_OUTPUT"
echo "set merge clearance to false"
else
echo "merge_clearance=true" >> "$GITHUB_OUTPUT"
echo "set merge clearance to true"
fi
fi
test_merge_prevention:
needs:
- check-merge-clearance
if: ${{ github.event_name == 'push' && needs.check-merge-clearance.outputs.merge_clearance == 'true' }}
runs-on: ubuntu-latest
steps:
- name: "test output var"
run: |
echo "Test clearance: " ${{ needs.check-merge-clearance.outputs.merge_clearance }}
codeql_analyze:
name: "CodeQL"
if: ${{ github.event_name == 'push' }}
Expand Down

0 comments on commit 14b1258

Please sign in to comment.