Skip to content

Commit

Permalink
Merge pull request #427 from fujiwara/fix/actions-bash3
Browse files Browse the repository at this point in the history
Fix/actions bash3
  • Loading branch information
fujiwara committed Aug 9, 2024
2 parents 47d5088 + 3f4ae12 commit 8161675
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- v1
- v1-actions-test
workflow_dispatch:

jobs:
Expand All @@ -11,19 +12,17 @@ jobs:
matrix:
env:
- runner: ubuntu-latest
os: linux
arch: amd64
- runner: macos-latest
os: darwin
arch: arm64
name: test action
runs-on: ${{ matrix.env.runner }}
steps:
- uses: actions/checkout@v4
- uses: fujiwara/lambroll@v1
- uses: fujiwara/lambroll@v1-actions-test
with:
version: v1.0.4
os: ${{ matrix.env.os }}
arch: ${{ matrix.env.arch }}
- run: |
lambroll version 2>&1 | fgrep v1.0.4
- uses: fujiwara/lambroll@v1
with:
version: v1.0.5
- run: |
lambroll version 2>&1 | fgrep v1.0.5
20 changes: 10 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ runs:
- name: Set file name
id: set-filename
run: |
BIN_OS=$(case "${{ runner.os }}" in
Linux) echo "linux" ;;
macOS) echo "darwin" ;;
*) echo "linux" ;;
esac)
case "${{ runner.os }}" in
Linux) BIN_OS="linux" ;;
macOS) BIN_OS="darwin" ;;
*) BIN_OS="linux" ;;
esac
BIN_ARCH=$(case "${{ runner.arch }}" in
X64) echo "amd64" ;;
ARM64) echo "arm64" ;;
*) echo "amd64" ;;
esac)
case "${{ runner.arch }}" in
X64) BIN_ARCH="amd64" ;;
ARM64) BIN_ARCH="arm64" ;;
*) BIN_ARCH="amd64" ;;
esac
FILENAME=lambroll_${{ inputs.version }}_${BIN_OS}_${BIN_ARCH}.tar.gz
echo "FILENAME=$FILENAME" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 8161675

Please sign in to comment.