Skip to content

Commit 6aed6d2

Browse files
committed
Add automatic v1 Actions tag update on stable publish
1 parent 9a5a351 commit 6aed6d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,13 @@ jobs:
259259
echo "No tags to create"
260260
fi
261261
262+
- name: Update v1 Actions tag
263+
if: steps.release-type.outputs.type == 'stable' && steps.changesets.outputs.skip != 'true' && steps.quick-check.outputs.skip != 'true'
264+
run: |
265+
git tag -f v1
266+
git push origin v1 --force
267+
echo "Updated v1 tag to $(git rev-parse HEAD)"
268+
262269
- name: Create docs tag if version changed
263270
if: steps.release-type.outputs.type == 'stable' && steps.changesets.outputs.skip != 'true' && steps.quick-check.outputs.skip != 'true' && steps.packages.outputs.publish_docs == 'true'
264271
run: |

0 commit comments

Comments
 (0)