f0b1845802
The env for remote composite actions need to be re-evaluated at every stage (pre, main, post) as it is created during the pre stage but there might be changes used as input to this actions main stage (e.g. outputs for another action). This is not required for local actions as their env is created for the main stage (there is no pre stage). Post stages do not need an updated env since they cannot recieve inputs from other actions.
32 lines
942 B
YAML
32 lines
942 B
YAML
name: push
|
|
on: push
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- id: set-output
|
|
run: echo "::set-output name=var::value"
|
|
- name: use simple composite action
|
|
uses: ./uses-composite-with-inputs/action
|
|
with:
|
|
some: ${{ steps.set-output.outputs.var }}
|
|
- name: use nested composite action
|
|
uses: ./uses-composite-with-inputs/composite
|
|
with:
|
|
composite-input: value
|
|
###
|
|
#
|
|
# Remote composite test
|
|
#
|
|
- name: use remote composite action
|
|
id: remote-composite
|
|
uses: nektos/act-test-actions/composite@main
|
|
with:
|
|
input: ${{ steps.set-output.outputs.var }}
|
|
- name: test remote composite output
|
|
run: |
|
|
echo "steps.remote-composite.outputs.output=${{ steps.remote-composite.outputs.output }}"
|
|
[[ "${{ steps.remote-composite.outputs.output == 'value' }}" = "true" ]] || exit 1
|
|
#
|
|
###
|