Skip to content

Commit

Permalink
fix: prerelease + secu
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr committed Apr 4, 2022
1 parent d6f13bf commit b538366
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
FROM_BRANCH: "dev"
TO_BRANCH: "master"
- name: Approve PR
run: gh pr review "$PR_URL" --approve
env:
PR_URL: ${{ steps.pull.outputs.PULL_REQUEST_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable Automerge
run: gh pr merge --auto --rebase "$PR_URL"
run: gh pr merge "$PR_URL" --auto --rebase
env:
PR_URL: ${{ steps.pull.outputs.PULL_REQUEST_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ concurrency:

jobs:
release:
if: github.ref == 'refs/heads/master'
name: Release
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit b538366

Please sign in to comment.