GitHub env file support (#426)
* Upgrade to the official golangci-lint action and fix some issues it found * Update deps * Remove a shadow warning * Initialize the splitPattern only once * Initial attempt at supporting $GITHUB_ENV Needs some polishing and tests * Now it's actually working * Replace golang.org/x/crypto/ssh/terminal with golang.org/x/term * Disable the issue-228 test again * The linter is picky * Discovered that the workflow/envs.txt had to exist in certain cases * Fix small linter issue
This commit is contained in:
8
.github/workflows/push.yml
vendored
8
.github/workflows/push.yml
vendored
@@ -7,11 +7,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: docker://golangci/golangci-lint:v1.23.8
|
||||
with:
|
||||
args: golangci-lint run
|
||||
- uses: golangci/golangci-lint-action@v2
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
with:
|
||||
version: v1.32.2
|
||||
|
||||
test:
|
||||
name: Test
|
||||
@@ -35,7 +35,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v1
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
version: latest
|
||||
args: release --snapshot --rm-dist
|
||||
|
1
.github/workflows/test-expressions.yml
vendored
1
.github/workflows/test-expressions.yml
vendored
@@ -8,6 +8,7 @@ env:
|
||||
KEY_WITH_UNDERSCORES: value_with_underscores
|
||||
SOMETHING_TRUE: true
|
||||
SOMETHING_FALSE: false
|
||||
ACT: true
|
||||
|
||||
|
||||
jobs:
|
||||
|
Reference in New Issue
Block a user