-
BehaviourMage not finding "go" in Steps to reproduce this issue
Expected behaviourDoesn't error Actual behaviourError Configurationjobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout code
id: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # need a full checkout for `git describe`
- name: Install Go 1.x
id: go
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Echo
run: echo $PATH
- name: Mage Build Linux
if: matrix.os == 'ubuntu-latest'
uses: magefile/mage-action@v1
with:
version: v1.10.0
args: -d ${{ env.GITHUB_WORKSPACE }}/cmd/bootstrap/ -w ${{ env.GITHUB_WORKSPACE }} build:linux LogsPath:
First item in the Mage:
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
You can't expand env vars in an input. Should be fine to use |
Beta Was this translation helpful? Give feedback.
-
Interesting, I saw the logs didn't include it, but when running the action locally with act it expanded it (see screenshot in first post). That said, I did try with: - name: Mage Build Linux
if: matrix.os == 'ubuntu-latest'
uses: magefile/mage-action@v1
with:
version: latest
args: -d ./cmd/bootstrap/ -w . build:linux
workdir: ${{ env.GITHUB_WORKSPACE }} |
Beta Was this translation helpful? Give feedback.
-
@audiolion Do you have a link to your repo pls? |
Beta Was this translation helpful? Give feedback.
-
It is a private repo, I can work on a reproducible example perhaps? |
Beta Was this translation helpful? Give feedback.
-
@audiolion Yes thanks I need some code base to be able to reproduce. |
Beta Was this translation helpful? Give feedback.
-
ok so the issue is the local tool I was using to test my action, act, was failing, but when running this on github proper it works. My bad for bothering you about this! The repro I made fails locally and passes on github proper https://github.com/audiolion/mage-action-repro |
Beta Was this translation helpful? Give feedback.
ok so the issue is the local tool I was using to test my action, act, was failing, but when running this on github proper it works. My bad for bothering you about this! The repro I made fails locally and passes on github proper https://github.com/audiolion/mage-action-repro