2022-10-06 16:58:16 -05:00
|
|
|
name: push
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-10-12 11:19:32 -05:00
|
|
|
- id: set-output
|
|
|
|
run: echo "::set-output name=var::value"
|
2022-10-06 16:58:16 -05:00
|
|
|
- name: use simple composite action
|
|
|
|
uses: ./uses-composite-with-inputs/action
|
|
|
|
with:
|
2022-10-12 11:19:32 -05:00
|
|
|
some: ${{ steps.set-output.outputs.var }}
|
2022-10-06 16:58:16 -05:00
|
|
|
- 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:
|
2022-10-12 11:19:32 -05:00
|
|
|
input: ${{ steps.set-output.outputs.var }}
|
2022-10-06 16:58:16 -05:00
|
|
|
- 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
|
|
|
|
#
|
|
|
|
###
|