Explorar o código

change to option rather than environment variable

Shahed Nasser hai 1 ano
pai
achega
69da7b4dc8

+ 2 - 3
.github/workflows/update-preview-deps-ci.yml

@@ -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 }}
@@ -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

+ 2 - 3
.github/workflows/update-preview-deps.yml

@@ -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 }}
@@ -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