-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
Just tried to commit to my backlogged-updates branch:
> git pull --tags origin backlogged-updates
From https://github.com/cpp-linter/cpp-linter-action
* branch backlogged-updates -> FETCH_HEAD
! [rejected] latest -> latest (would clobber existing tag)
After #83 was opened, the latest
tag was moved to a different branch which seemed to cause conflicts when my machine tried to do git pull
.
I would suggest
--- a/.github/workflows/run-test.yml
+++ b/.github/workflows/run-test.yml
@@ -23,6 +23,7 @@ jobs:
git push origin latest
test-action:
+ needs: [add-tag]
runs-on: ubuntu-latest
steps:
- uses: convictional/trigger-workflow-and-wait@v1.6.3
@@ -38,6 +39,7 @@ jobs:
trigger_workflow: true
wait_workflow: true
test-package:
+ needs: [add-tag]
runs-on: ubuntu-latest
steps:
- uses: convictional/trigger-workflow-and-wait@v1.6.3
@@ -52,3 +54,14 @@ jobs:
propagate_failure: true
trigger_workflow: true
wait_workflow: true
+ remove-tag:
+ needs: [test-action, test-package]
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: remove latest tag (cleanup)
+ run: |
+ git config user.name 'github-actions'
+ git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
+ git push --delete origin latest || true
Metadata
Metadata
Assignees
Labels
No labels