Skip to content

Commit

Permalink
fix: gh: To use GitHub CLI in a GitHub Actions workflow, set the GH_T…
Browse files Browse the repository at this point in the history
…OKEN environment variable
  • Loading branch information
sibelly committed Oct 23, 2024
1 parent 6a42650 commit a3be920
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/auto-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
- name: Verify if PR already open
env:
GH_TOKEN: ${{ secrets.PAT }}
run: |
prs_list=$(gh pr list --search "${{ github.ref_name }}")
echo "${prs_list}"
for pr in $prs_list; do
Expand Down

0 comments on commit a3be920

Please sign in to comment.