Skip to content

Commit

Permalink
Add commits print earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
jjcarstens committed Oct 31, 2024
1 parent 9197fa4 commit e5080dc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Check if PR publish
if: ${{ github.event_name == 'pull_request' }}
id: pr_publish_check
run: |
git fetch origin main
commits=$(git show --no-patch --format=%B origin/main...${{ github.sha }})
echo "$commits"
if [[ $commits =~ \[publish\] ]]; then
echo "publish=true" >> $GITHUB_OUTPUT
else
echo "publish=false" >> $GITHUB_OUTPUT
fi
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
Expand Down

0 comments on commit e5080dc

Please sign in to comment.