Skip to content

Commit 2c5e20b

Browse files
authored
Update release workflow and upgrade cpp-linter to v1.4.8 (#105)
* fix input value is empty when event is published * fix line filtering error on large patches
1 parent 952be34 commit 2c5e20b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,21 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525
ref: ${{ inputs.ref }}
26-
- name: update tag
26+
- name: Config git name and email
2727
run: |
2828
git config user.name 'github-actions'
2929
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
30+
- name: Update tag with parameter
31+
if: github.event.inputs.tag != ''
32+
run: |
3033
git tag --delete ${{ inputs.tag }} || true
3134
git push --delete origin ${{ inputs.tag }} || true
3235
git tag -a ${{ inputs.tag }} -m 'Retag ${{ inputs.tag }}'
3336
git push origin ${{ inputs.tag }}
37+
- name: Update tag to v2
38+
if: github.event.inputs.tag == ''
39+
run: |
40+
git tag --delete v2 || true
41+
git push --delete origin v2 || true
42+
git tag -a v2 -m 'Retag v2'
43+
git push origin v2

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ runs:
8787
steps:
8888
- name: Install action dependencies
8989
shell: bash
90-
run: python3 -m pip install clang-tools cpp-linter==1.4.7
90+
run: python3 -m pip install clang-tools cpp-linter==1.4.8
9191
- name: Install clang-tools binary executables
9292
shell: bash
9393
run: clang-tools -i ${{ inputs.version }} -b

0 commit comments

Comments
 (0)