Skip to content

Commit

Permalink
Github action 12 (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
Berat-Dzhevdetov authored Sep 26, 2024
1 parent 9462630 commit 431ad7a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
body: "This PR bumps the version to ${{ env.RELEASE_TAG }}."
base: main
labels: |
automated pr
automerge
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -113,10 +113,16 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PULL_REQUEST: ${{ steps.create_pr.outputs.pull-request-number }}

- name: Fail if not merged
if: ${{ steps.automerge.outputs.mergeResult != 'merged' }}
run: |
echo "Automerge failed"
exit 1
- name: Automerge Feedback
if: ${{ steps.automerge.outputs.mergeResult == 'merged' }}
run: |
echo "Pull request ${{ steps.automerge.outputs.pullRequestNumber }} merged!"
echo "Pull request ${{ steps.automerge.outputs.pullRequestNumber }} merged successfully!"
# - name: Publish the NPM package
# run: npm publish --access public
Expand Down

0 comments on commit 431ad7a

Please sign in to comment.