How to pass --config file to github action? #2644
-
I have the following gorelease.yml: name: goreleaser
on:
push:
tags:
- 'v*.*.*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
run: cd $GITHUB_WORKSPACE && wget https://raw.githubusercontent.com/PinkDev1/hacker-scoper/main/.github/.goreleaser.yml && pwd
-
name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.2
-
name: run GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist --config $GITHUB_WORKSPACE/.goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }} but it can never open the config file:
How should I supply a config file to the github action? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@PinkDev1 shell vars are not expanded for the actions inputs but you can use |
Beta Was this translation helpful? Give feedback.
-
It seems that was the issue! I put the wget job immediately before the gorelease job, and it detected the file! |
Beta Was this translation helpful? Give feedback.
@caarlos0
It seems that was the issue! I put the wget job immediately before the gorelease job, and it detected the file!
I still have to fix the formatting of my config file, but that's beyond this discussion