Skip to content

chore(deps): bump tibdex/github-app-token from 1.8.0 to 1.8.2 #4

chore(deps): bump tibdex/github-app-token from 1.8.0 to 1.8.2

chore(deps): bump tibdex/github-app-token from 1.8.0 to 1.8.2 #4

---
name: "Track PRs for release"
on: # yamllint disable-line rule:truthy
pull_request_target:
types:
- closed
- labeled
- unlabeled
branches:
- main
# All jobs require a specifically generated token to run, since we want to
# access org-level projects and the normal GITHUB_TOKEN only has access to this
# repository.
jobs:
handle_merged_pr:
if: github.event.action == 'closed' && github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.base_ref }}
- name: Generate token
id: generate_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.RELEASE_APP_ID }}
private_key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
- name: Handle merged PR
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
PR_ID: ${{ github.event.pull_request.node_id }}
run: tools/scripts/track-pr pr-merged "$PR_ID"
handle_labeled_pr:
if: github.event.action == 'labeled' || github.event.action == 'unlabeled'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.base_ref }}
- name: Generate token
id: generate_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.RELEASE_APP_ID }}
private_key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
- name: Handle labeled PR
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
PR_ID: ${{ github.event.pull_request.node_id }}
PR_LABEL: ${{ github.event.label.name }}
run: tools/scripts/track-pr pr-${{ github.event.action }} "$PR_ID" "$PR_LABEL"