fix(ci): test basic step execution
Some checks failed
CI/CD / Test (push) Successful in 30s
CI/CD / Lint (push) Successful in 40s
CI/CD / Generate SBOM (push) Successful in 16s
CI/CD / Build (darwin-amd64) (push) Successful in 22s
CI/CD / Build (linux-amd64) (push) Successful in 21s
CI/CD / Build (darwin-arm64) (push) Successful in 21s
CI/CD / Build (linux-arm64) (push) Successful in 22s
CI/CD / Build & Push Docker Image (push) Successful in 21s
CI/CD / Mirror to GitHub (push) Failing after 31s
CI/CD / Release (push) Has been skipped

This commit is contained in:
2025-12-13 17:17:57 +01:00
parent be1f64a256
commit ef5b0533e0

View File

@@ -206,16 +206,8 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Push to GitHub - name: Push to GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUBMIRRORTOKEN }}
run: | run: |
echo "Starting mirror..." echo "Step is running!"
if [ -z "${GITHUB_TOKEN}" ]; then echo "Listing remotes..."
echo "ERROR: GITHUBMIRRORTOKEN secret is empty!" git remote -v
exit 1 echo "Done listing remotes"
fi
echo "Token length: ${#GITHUB_TOKEN}"
git remote add github "https://x-access-token:${GITHUB_TOKEN}@github.com/PlusOne/hmac-file-server.git"
git push --force --all github
git push --force --tags github
echo "Mirror complete!"