Skip to content

Commit ac9ee4c

Browse files
authored
Use git instead of gh.
1 parent 0705bf6 commit ac9ee4c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎.github/workflows/archive.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
sync: rsync
3030
copyback: false
3131
prepare: |
32-
pkg_add -I git github-cli
32+
pkg_add -I git
3333
3434
run: |
3535
set -e
@@ -72,10 +72,10 @@ jobs:
7272
7373
# Commit changes
7474
git add archive/
75-
git commit -m "Archive website (OpenBSD) [skip ci]" || exit 0
75+
git commit -m "Archive website [skip ci]" || echo "Nothing to commit"
7676
77-
# Authenticate with GitHub CLI
78-
echo "$GH_TOKEN" | gh auth login --with-token
77+
# Push changes using GH_TOKEN
78+
git push https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git main
7979
80-
# Push changes
81-
git push origin main
80+
# Optional: cleanup temporary files
81+
rm -rf "$TMP_DIR"

0 commit comments

Comments
 (0)