chore: Always run checks in release workflow #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create a release | |
on: | |
pull_request: | |
# types: ['opened', 'reopened', 'synchronize', 'labeled', 'unlabeled', 'edited', 'ready_for_review'] # The first 3 are default. | |
concurrency: | |
group: release | |
cancel-in-progress: false | |
jobs: | |
wait_for_checks: | |
name: Wait for code checks to pass | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Check if the head commit contains [skip ci] | |
id: check_skip | |
run: | | |
if git log --format=%B -n 1 ${{ github.sha }} | head -n 1 | grep '\[skip ci\]$'; then | |
echo skipped=true >> $GITHUB_OUTPUT | |
else | |
echo skipped=false >> $GITHUB_OUTPUT | |
fi | | |
echo ${{ steps.check_skip.outputs.skipped}} | |
- uses: lewagon/[email protected] | |
if: ${{ steps.check_skip.outputs.skipped == 'false' }} | |
with: | |
ref: ${{ github.ref }} | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
check-regexp: "( check| tests)$" | |
wait-interval: 5 | |