Skip to content

Commit e916d46

Browse files
committed
fix: remove redundant environment variable definitions in weekly upstream sync workflow
1 parent b905301 commit e916d46

2 files changed

Lines changed: 5 additions & 184 deletions

File tree

.github/workflows/weekly-upstream-sync.backup

Lines changed: 0 additions & 178 deletions
This file was deleted.

.github/workflows/weekly-upstream-sync.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ permissions:
1111
issues: write
1212
pull-requests: write
1313

14+
env:
15+
# Used for `gh` CLI operations to create/close/comment issues. Must be a PAT with repo permissions because the default
16+
GH_AW_AGENT_TOKEN: ${{ secrets.GH_AW_AGENT_TOKEN }}
17+
GH_TOKEN: ${{ secrets.GH_AW_AGENT_TOKEN }}
18+
1419
jobs:
1520

1621
check-and-sync:
@@ -55,8 +60,6 @@ jobs:
5560
5661
- name: Close previous upstream-sync issues
5762
if: steps.check.outputs.has_changes == 'true'
58-
env:
59-
GH_TOKEN: ${{ secrets.COPILOT_ISSUE_PR_AGENTIC_WORKFLOW }}
6063
run: |
6164
# Find all open issues with the upstream-sync label
6265
OPEN_ISSUES=$(gh issue list \
@@ -78,8 +81,6 @@ jobs:
7881
7982
- name: Close stale upstream-sync issues (no changes)
8083
if: steps.check.outputs.has_changes == 'false'
81-
env:
82-
GH_TOKEN: ${{ secrets.COPILOT_ISSUE_PR_AGENTIC_WORKFLOW }}
8384
run: |
8485
OPEN_ISSUES=$(gh issue list \
8586
--repo "${{ github.repository }}" \
@@ -101,8 +102,6 @@ jobs:
101102
- name: Create issue and assign to Copilot
102103
id: create-issue
103104
if: steps.check.outputs.has_changes == 'true'
104-
env:
105-
GH_TOKEN: ${{ secrets.COPILOT_ISSUE_PR_AGENTIC_WORKFLOW }}
106105
run: |
107106
COMMIT_COUNT="${{ steps.check.outputs.commit_count }}"
108107
LAST_MERGE="${{ steps.check.outputs.last_merge }}"

0 commit comments

Comments
 (0)