Skip to content

Commit

Permalink
Update release workflow and upgrade cpp-linter to v1.4.8 (#105)
Browse files Browse the repository at this point in the history
* fix input value is empty when event is published

* fix line filtering error on large patches
  • Loading branch information
shenxianpeng committed Sep 20, 2022
1 parent 952be34 commit 2c5e20b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -23,11 +23,21 @@ jobs:
with:
fetch-depth: 0
ref: ${{ inputs.ref }}
- name: update tag
- name: Config git name and email
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 != ''
run: |
git tag --delete ${{ inputs.tag }} || true
git push --delete origin ${{ inputs.tag }} || true
git tag -a ${{ inputs.tag }} -m 'Retag ${{ inputs.tag }}'
git push origin ${{ inputs.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
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -87,7 +87,7 @@ runs:
steps:
- name: Install action dependencies
shell: bash
run: python3 -m pip install clang-tools cpp-linter==1.4.7
run: python3 -m pip install clang-tools cpp-linter==1.4.8
- name: Install clang-tools binary executables
shell: bash
run: clang-tools -i ${{ inputs.version }} -b
Expand Down

0 comments on commit 2c5e20b

Please sign in to comment.