Skip to content

Commit cf6216a

Browse files
committed
ci: simplify workflow installation by forcing addition of copilot tokens
1 parent eedebbf commit cf6216a

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/install-workflows.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,7 @@ jobs:
7575
RUN_BRANCH="ci/install-workflows-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
7676
git switch --create "$RUN_BRANCH"
7777
78-
if [[ -f .github/workflows/copilot-token-audit.md && -f .github/workflows/copilot-token-optimizer.md ]]; then
79-
gh aw update copilot-token-audit copilot-token-optimizer
80-
else
81-
gh aw add "${{ github.workspace }}/workflows/copilot-token-audit.md" "${{ github.workspace }}/workflows/copilot-token-optimizer.md"
82-
fi
78+
gh aw add --force "${{ github.workspace }}/workflows/copilot-token-audit.md" "${{ github.workspace }}/workflows/copilot-token-optimizer.md"
8379
gh aw compile
8480
8581
git config user.name "github-actions[bot]"

0 commit comments

Comments
 (0)