pkg/runner: add support to replace GitHub's env (#1197)
There might be use cases where users want to use GitHub's variables in the environment variables, which is a valid use case. This commits adds support for replacement of GitHub's env with GitHub's values. Signed-off-by: André Martins <aanm90@gmail.com>
This commit is contained in:
13
pkg/runner/testdata/issue-1195/push.yml
vendored
Normal file
13
pkg/runner/testdata/issue-1195/push.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
on: push
|
||||
|
||||
env:
|
||||
variable: "${{ github.repository_owner }}"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: print env.variable
|
||||
run: |
|
||||
echo ${{ env.variable }}
|
||||
exit ${{ (env.variable == 'nektos') && '0' || '1'}}
|
Reference in New Issue
Block a user