Skip to content

Commit

Permalink
Update CI GitHub workflow
Browse files Browse the repository at this point in the history
Ensure push events still work. After the changes in 053f8b1 the workflow
errored.
  • Loading branch information
gbp committed Nov 3, 2023
1 parent e9e9de6 commit 6e3e0aa
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ jobs:
- name: Check for [skip rspec]
id: skip
run: |
PR_DESCRIPTION=$(gh pr view https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }} --json body -q '.body')
if echo "$PR_DESCRIPTION" | grep -q "\[skip rspec\]"; then
echo "Skip RSpec found in PR description. Passing the action."
echo "skip_rspec=true" >> $GITHUB_OUTPUT
else
echo "skip_rspec=false" >> $GITHUB_OUTPUT
if [ "${{ github.event_name }}" = "pull_request" ]; then
PR_DESCRIPTION=$(gh pr view https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }} --json body -q '.body')
if echo "$PR_DESCRIPTION" | grep -q "\[skip rspec\]"; then
echo "Skip RSpec found in PR description. Passing the action."
echo "skip_rspec=true" >> $GITHUB_OUTPUT
exit
fi
fi
echo "skip_rspec=false" >> $GITHUB_OUTPUT
rspec:
name: Ruby ${{ matrix.ruby }} / PostgreSQL ${{ matrix.postgres }}
Expand Down

0 comments on commit 6e3e0aa

Please sign in to comment.