Rollback to the last working point
This commit is contained in:
25
.github/workflows/versioning.yml
vendored
25
.github/workflows/versioning.yml
vendored
@@ -1,11 +1,14 @@
|
||||
# Workflow for managing versioning, tagging, and conditional updates
|
||||
# Workflow for managing versioning and tagging
|
||||
---
|
||||
name: Bump Version and Tag
|
||||
name: Version Bump and Tag
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- '**/VERSION'
|
||||
- '**/VERSION_YAML'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
update_stable:
|
||||
@@ -18,7 +21,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: "actions/checkout@v4"
|
||||
|
||||
- name: Set up Git
|
||||
run: |
|
||||
@@ -27,19 +30,13 @@ jobs:
|
||||
|
||||
- name: Bump Version
|
||||
run: |
|
||||
chmod +x ./versioning/bump_version.sh
|
||||
./versioning/bump_version.sh
|
||||
chmod +x "./versioning/bump_version.sh"
|
||||
"./versioning/bump_version.sh"
|
||||
|
||||
- name: Push Changes and Tags
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
run: |
|
||||
git push https://x-access-token:${GITHUB_TOKEN}@github.com/edwardtfn/TX-Ultimate-Easy.git main
|
||||
git push https://x-access-token:${GITHUB_TOKEN}@github.com/edwardtfn/TX-Ultimate-Easy.git --tags
|
||||
|
||||
- name: Conditionally Update Stable Tag
|
||||
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.update_stable == 'true' }}
|
||||
run: |
|
||||
git tag -f stable
|
||||
git push https://x-access-token:${GITHUB_TOKEN}@github.com/edwardtfn/TX-Ultimate-Easy.git stable --force
|
||||
git push "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" main
|
||||
git push "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" --tags
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user