New approach to GitHub tokens

This commit is contained in:
Edward Firmo
2024-12-21 11:20:13 +01:00
parent f6169e3ea2
commit c8ffa9e224
2 changed files with 3 additions and 9 deletions

View File

@@ -34,18 +34,12 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
if ! git push origin main; then git push https://x-access-token:${GITHUB_TOKEN}@github.com/<your-username>/<repository-name>.git main
echo "Failed to push to main branch" git push https://x-access-token:${GITHUB_TOKEN}@github.com/<your-username>/<repository-name>.git --tags
exit 1
fi
if ! git push origin --tags --force; then
echo "Failed to push tags"
exit 1
fi
- name: Conditionally Update Stable Tag - name: Conditionally Update Stable Tag
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.update_stable == 'true' }} if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.update_stable == 'true' }}
run: | run: |
git tag -f stable git tag -f stable
git push origin stable --force git push https://x-access-token:${GITHUB_TOKEN}@github.com/<your-username>/<repository-name>.git stable --force
... ...

BIN
Assets/Logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB