Skip to content

Commit

Permalink
ci: try to fix weird if condition issue
Browse files Browse the repository at this point in the history
CC: actions/runner#1173
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
  • Loading branch information
simonsan committed Sep 12, 2023
1 parent 7660bc9 commit 8c22aa0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/actions/create-binary-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,27 +93,27 @@ runs:
sudo apt-get install -y musl-tools
- name: install cargo-auditable for non-cross builds
shell: bash
if: ${{ inputs.use_cross != true }}
if: inputs.use_cross != 'true'
run: |
cargo install cargo-auditable cargo-audit
- uses: Swatinem/rust-cache@e207df5d269b42b69c8bc5101da26f7d31feddb4 # v2
with:
key: ${{ inputs.target }}
- name: Set Version
if: ${{ inputs.use-project-version == true }}
if: inputs.use-project-version == 'true'
shell: bash
run: echo "PROJECT_VERSION=$(git describe --tags)${{ inputs.describe-tag-prefix }}" >> $GITHUB_ENV
- name: Cargo build
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1
if: ${{ inputs.use-cross == true }}
if: inputs.use-cross == 'true'
with:
command: build
use-cross: ${{ inputs.use-cross }}
toolchain: ${{ inputs.toolchain }}
args: --release --target ${{ inputs.target }}
- name: Cargo auditable build
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1
if: ${{ inputs.use-cross == false }}
if: inputs.use-cross == 'false'
with:
command: auditable
use-cross: ${{ inputs.use-cross }}
Expand Down Expand Up @@ -146,7 +146,7 @@ runs:
- name: Create SHA256
shell: bash
if: ${{ inputs.hash-release == true }}
if: inputs.hash-release == 'true'
run: |
RELEASE_NAME=${{ steps.package-name.outputs.name }}
if [[ ${{ inputs.os }} == 'Windows' ]]; then
Expand All @@ -157,7 +157,7 @@ runs:
- name: Create GPG signature
shell: bash
if: ${{ inputs.sign-release == true }}
if: inputs.sign-release == 'true'
run: |
RELEASE_NAME=${{ steps.package-name.outputs.name }}
echo "${{ inputs.gpg-release-private-key }}" > private.key
Expand Down

0 comments on commit 8c22aa0

Please sign in to comment.