Skip to content

Commit

Permalink
build(conditions): Use github app only with main branch
Browse files Browse the repository at this point in the history
build(conditions): Use github app only with main branch
  • Loading branch information
juancgalvis authored Jul 9, 2024
2 parents f95c8c1 + f029130 commit 9286c22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ jobs:
steps:
- name: Generate a token
id: generate_token
if: github.ref == 'refs/heads/master'
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID_ADMIN_GITHUB }}
private_key: ${{ secrets.APP_PRIVATE_KEY_ADMIN_GITHUB }}
- uses: actions/checkout@v4
if: github.ref == 'refs/heads/master'
with:
token: ${{ steps.generate_token.outputs.token }}
- uses: actions/checkout@v4
if: github.ref != 'refs/heads/master'

- name: Verify Conventional Commits
uses: amannn/action-semantic-pull-request@v5
Expand Down

0 comments on commit 9286c22

Please sign in to comment.