forked from product-os/flowzone
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
42 lines (40 loc) · 1.48 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
name: "Publish custom"
description: "Custom publish step to run after all tests have passed"
# this inputs are always provided by flowzone, so they must always be defined on the composite action
inputs:
json:
description: "JSON stringified object containing all the inputs from the calling workflow"
required: true
secrets:
description: "JSON stringified object containing all the secrets from the calling workflow"
required: true
variables:
description: "JSON stringified object containing all the variables from the calling workflow"
required: true
runs:
using: "composite"
steps:
- name: Dump context
shell: bash
env:
GITHUB: ${{ toJSON(github) }}
INPUTS: ${{ inputs.json }}
SECRETS: ${{ inputs.secrets }}
VARIABLES: ${{ toJSON(inputs.variables) }}
run: |
echo "${GITHUB}"
echo "${INPUTS}"
echo "${SECRETS}"
echo "${VARIABLES}"
- name: Create artifact
shell: bash
run: |
echo "Hello, World!" > "${{ runner.temp }}/hello.world.${{ strategy.job-index }}"
# Test publishing release artifacts to github
- name: Upload artifact
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
with:
name: gh-release-custom-${{ strategy.job-index }}
path: ${{ runner.temp }}/hello.world.${{ strategy.job-index }}
retention-days: 1