summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/uses-composite-with-inputs/push.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-10-20 23:07:42 +0200
committerDaniel Baumann <daniel@debian.org>2024-11-09 15:38:42 +0100
commit714c83b2736d7e308bc33c49057952490eb98be2 (patch)
tree1d9ba7035798368569cd49056f4d596efc908cd8 /pkg/runner/testdata/uses-composite-with-inputs/push.yml
parentInitial commit. (diff)
downloadforgejo-act-debian.tar.xz
forgejo-act-debian.zip
Adding upstream version 1.21.4.HEADupstream/1.21.4upstreamdebian
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'pkg/runner/testdata/uses-composite-with-inputs/push.yml')
-rw-r--r--pkg/runner/testdata/uses-composite-with-inputs/push.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkg/runner/testdata/uses-composite-with-inputs/push.yml b/pkg/runner/testdata/uses-composite-with-inputs/push.yml
new file mode 100644
index 0000000..9d0cc5b
--- /dev/null
+++ b/pkg/runner/testdata/uses-composite-with-inputs/push.yml
@@ -0,0 +1,32 @@
+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
+ #
+ ###