Skip to content

Commit 868e8ce

Browse files
author
Scott Alexander
committed
force push of new tag renaming action
1 parent 5991d88 commit 868e8ce

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'Git - Rename Tag'
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
old_tag:
7+
description: 'Numerical only e.g. 1.0.0'
8+
required: true
9+
type: 'string'
10+
new_tag:
11+
description: 'Numerical only e.g. 1.1.0'
12+
required: true
13+
type: 'string'
14+
15+
permissions:
16+
pull-requests: write
17+
id-token: write # This is required for requesting the JWT
18+
contents: read # This is required for actions/checkout
19+
20+
jobs:
21+
tag_renaming_process:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Get and create new tag
26+
id: init
27+
run: |
28+
git checkout ${{ github.event.inputs.old_tag}}
29+
git tag ${{ github.event.inputs.new_tag}}
30+
git push origin ${{ github.event.inputs.new_tag}}
31+
32+
working-directory: ./
33+
shell: bash

0 commit comments

Comments
 (0)