Skip to content

Commit

Permalink
Update add-license-header.yml (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ERLindeman authored Sep 13, 2024
1 parent 9f16ba1 commit 9aa448b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/add-license-header.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,21 @@ jobs:
permissions:
contents: write
pull-requests: write
issues: write # If you need to add labels or comments

steps:
- name: Generate GitHub App Token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ vars.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}

- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Important for creating branches and PRs
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}

- name: Install Python (for running script)
uses: actions/setup-python@v2
Expand Down Expand Up @@ -61,7 +70,7 @@ jobs:
if: steps.changes.outputs.changes == 'true'
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ steps.generate_token.outputs.token }}
commit-message: "Update license header in source files"
branch: license-header-updates
title: "Update License Headers"
Expand Down

0 comments on commit 9aa448b

Please sign in to comment.