Skip to content

Commit

Permalink
export gh token to allow the github cli tool to be used in the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed Nov 12, 2024
1 parent 35ff043 commit 11bb6af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run pkgcruft
uses: pkgcraft/pkgcruft-action@main
```
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ runs:
- name: Run pkgcruft action
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: pkgcruft-action

- name: Save cache
Expand Down

0 comments on commit 11bb6af

Please sign in to comment.