Skip to content

Commit

Permalink
fix workflow action 'if' condition
Browse files Browse the repository at this point in the history
not need "{{" and "}}"  at 'if'

Signed-off-by: Frank Li <[email protected]>
  • Loading branch information
nxpfrankli committed Jun 16, 2023
1 parent c1dbd85 commit 6c3190c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ jobs:
make
- name: Upload Build Artifacts
if: ${{ matrix.os }} == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v3
with:
name: uuu
path: ./build/uuu/uuu

- name: Create or Update Release
if: ${{ matrix.os }} == 'ubuntu-20.04' && ${{ github.ref_type }} == 'tag'
if: matrix.os == 'ubuntu-20.04' && github.ref_type == 'tag'
uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
path: uuu_${{ matrix.arch }}

- name: Create or Update Release
if: ${{ github.ref_type }} == 'tag'
if: github.ref_type == 'tag'
uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
path: wiki/UUU.pdf

- name: Create or Update Release
if: ${{ github.ref_type }} == 'tag'
if: github.ref_type == 'tag'
uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
path: uuu/uuu

- name: Create or Update Release
if: ${{ github.ref_type }} == 'tag'
if: github.ref_type == 'tag'
uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
path: uuu_source-${{ github.ref_name }}.tar.gz

- name: Create or Update Release
if: ${{ github.ref_type }} == 'tag'
if: github.ref_type == 'tag'
uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
path: msvc/x64/Release/uuu.exe

- name: Create or Update Release
if: matrix.configuration == 'Release' && matrix.platform == 'x64' && ${{ github.ref_type }} == 'tag'
if: matrix.configuration == 'Release' && matrix.platform == 'x64' && github.ref_type == 'tag'
uses: ncipollo/release-action@v1
with:
name: Release ${{ github.ref_name }}
Expand Down

0 comments on commit 6c3190c

Please sign in to comment.