Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions .github/workflows/retag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ permissions:

on:
release:
branches: [main]
types: [released]
workflow_dispatch:
inputs:
Expand All @@ -29,19 +28,12 @@ jobs:
run: |
git config user.name 'github-actions'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
- name: Update tag with parameter
if: github.event.inputs.tag != ''
- name: Move the tag
env:
TAG: ${{ inputs.tag }}
# A release moves v2; a manual run moves the tag it names.
TAG: ${{ inputs.tag || 'v2' }}
run: |
git tag --delete "$TAG" || true
git push --delete origin "$TAG" || true
git tag -a "$TAG" -m "Retag $TAG"
git push origin "$TAG"
- name: Update tag to v2
if: github.event.inputs.tag == ''
run: |
git tag --delete v2 || true
git push --delete origin v2 || true
git tag -a v2 -m 'Retag v2'
git push origin v2
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
venv/
.venv/
__pycache__/
result.txt
.pytest_cache/
.ruff_cache/
.mypy_cache/

# pytest-cov
.coverage
Expand Down
Loading