-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (54 loc) · 1.73 KB
/
B1.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: B1
run-name: "Build a release from: -> ${{ github.workflow }} (on tag: @${{ github.ref_name }})"
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
# Allows you to run this workflow manually from the Actions tab (for testing)
workflow_dispatch:
jobs:
setup:
name: "Validate version"
runs-on: ubuntu-latest
outputs:
formatter_server_ref: ${{ steps.validated.outputs.FORMATTER_SERVER_REF }}
steps:
- id: validated
run: |
FORMATTER_SERVER_REF="aver"
echo "FORMATTER_SERVER_REF=$FORMATTER_SERVER_REF" >> $GITHUB_OUTPUT
build1:
needs: setup
if: needs.setup.result == 'success'
uses: tekert/test-gh-actions1/.github/workflows/build.yml@master
with:
target: ${{needs.setup.outputs.formatter_server_ref}}
secrets: inherit
build2:
needs: [build1]
if: needs.build1.result == 'success'
runs-on: ubuntu-latest
steps:
- name: Set github envs for debug
run: echo 'Set github envs for debug' #'${{ toJSON(needs) }}'
env:
GITHUB_JSON: ${{ toJSON(github) }}
NEEDS_JSON: ${{ toJSON(needs) }}
ENV_JSON: ${{ toJSON(env) }}
INPUTS_JSON: ${{ toJSON(inputs) }}
working-directory: "."
- name: Display structure of downloaded files
run: |
echo "AVER: ${{needs.setup.outputs.formatter_server_ref}}"
ls -R
# Download artifact
- name: "Download build artifacts"
uses: actions/download-artifact@v3
- name: Display structure of downloaded files
run: ls -R
- name: "Checkout local repository"
uses: actions/checkout@v3
- uses: actions/upload-artifact@v3
with:
name: test
path: README.md