New approach to GitHub tokens
This commit is contained in:
12
.github/workflows/versioning.yml
vendored
12
.github/workflows/versioning.yml
vendored
@@ -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
BIN
Assets/Logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 165 KiB |
Reference in New Issue
Block a user