mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-26 18:20:59 +00:00
fix: step env is unavailable in with property expr (#1458)
* fix: step env is unavailable in with property expr * don't run the test on windows * fix: composite action add missing shell Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
1441baa591
commit
68e74447c3
5 changed files with 40 additions and 2 deletions
8
act/runner/testdata/inputs-via-env-context/action.yml
vendored
Normal file
8
act/runner/testdata/inputs-via-env-context/action.yml
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
inputs:
|
||||
test-env-input: {}
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- run: |
|
||||
exit ${{ inputs.test-env-input == env.test-env-input && '0' || '1'}}
|
||||
shell: bash
|
15
act/runner/testdata/inputs-via-env-context/push.yml
vendored
Normal file
15
act/runner/testdata/inputs-via-env-context/push.yml
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
on: push
|
||||
jobs:
|
||||
test-inputs-via-env-context:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./inputs-via-env-context
|
||||
with:
|
||||
test-env-input: ${{ env.test-env-input }}
|
||||
env:
|
||||
test-env-input: ${{ github.event_name }}/${{ github.run_id }}
|
||||
- run: |
|
||||
exit ${{ env.test-env-input == format('{0}/{1}', github.event_name, github.run_id) && '0' || '1' }}
|
||||
env:
|
||||
test-env-input: ${{ github.event_name }}/${{ github.run_id }}
|
Loading…
Add table
Add a link
Reference in a new issue