Skip to content

Commit

Permalink
change to option rather than environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser committed May 27, 2024
1 parent f0925f5 commit 69da7b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/update-preview-deps-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# Close each pull request
echo "$PR_LIST" | jq -r '.[].number' | while read -r PR_NUMBER; do
echo "Closing pull request #$PR_NUMBER"
gh pr close "$PR_NUMBER"
gh pr close "$PR_NUMBER" -d
done
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -57,12 +57,11 @@ jobs:

- name: Open PR with changes
uses: peter-evans/create-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
with:
title: "chore(feat/v2-ci): updated preview dependencies"
body: "This PR updates preview dependencies to the latest versions."
branch: "chore/update-preview"
branch-suffix: "timestamp"
token: ${{ secrets.PAT_TOKEN }}
base: "feat/v2-ci"
add-paths: yarn.lock
5 changes: 2 additions & 3 deletions .github/workflows/update-preview-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# Close each pull request
echo "$PR_LIST" | jq -r '.[].number' | while read -r PR_NUMBER; do
echo "Closing pull request #$PR_NUMBER"
gh pr close "$PR_NUMBER"
gh pr close "$PR_NUMBER" -d
done
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -57,12 +57,11 @@ jobs:

- name: Open PR with changes
uses: peter-evans/create-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
with:
title: "chore(feat/v2): updated preview dependencies"
body: "This PR updates preview dependencies to the latest versions."
branch: "chore/update-preview"
branch-suffix: "timestamp"
token: ${{ secrets.PAT_TOKEN }}
base: "feat/v2"
add-paths: yarn.lock

0 comments on commit 69da7b4

Please sign in to comment.