Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/lint-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,21 @@ jobs:
name: Validate PR title
runs-on: ${{ fromJSON(vars.RUNS_ON) }}
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.GIT_APP_ID }}
private-key: ${{ secrets.GIT_APP_PRIVATE_KEY }}
owner: SallaApp

# skip on new commits and on body-only edits
- if: >-
github.event.action != 'synchronize' &&
(github.event.action != 'edited' || github.event.changes.title != null)
uses: SallaApp/.CI/lint-pr@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ steps.app-token.outputs.token }}

branch:
name: Validate branch name
Expand Down