Skip to content

Commit 13eb9a7

Browse files
committed
check token before pushing
1 parent 679e303 commit 13eb9a7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/mirror-dot-agents.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ jobs:
2020
env:
2121
TOKEN: ${{ secrets.CODEBUFF_GITHUB_TOKEN }}
2222
run: |
23+
if [[ -v TOKEN ]]; then
24+
echo "token exists"
25+
else
26+
echo "token does not exist"
27+
fi
2328
git subtree push --prefix=common/src/templates/initial-agents-dir \
24-
https://x-access-token:${TOKEN}@github.com/codebuffai/codebuff-dot-agents.git \
29+
https://${TOKEN}@github.com/codebuffai/codebuff-dot-agents.git \
2530
main
26-
- name: Open interactive debug shell
27-
if: ${{ failure() }}
28-
uses: mxschmitt/action-tmate@v3
29-
timeout-minutes: 15 # optional guard

0 commit comments

Comments
 (0)