-
-
Notifications
You must be signed in to change notification settings - Fork 191
/
action.yml
54 lines (45 loc) · 1.3 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
43
44
45
46
47
48
49
50
51
52
53
name: 'setup base env'
description: "setup base environment for build tegola"
inputs:
ui:
description: 'Download UI'
required: false
default: 'false'
go:
description: 'Download install go'
required: false
default: 'true'
runs:
using: "composite"
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Download version artifact
uses: actions/download-artifact@v4
with:
name: version
- name: Download ui artifact
uses: actions/download-artifact@v4
with:
name: ui
path: ${{ github.workspace }}/ui/dist
if: ${{ inputs.ui == 'true' }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
if: ${{ inputs.go == 'true' }}
- name: Set tegola version
run: go run ci/cat_version_envs.go -version_file version.txt | tee $GITHUB_ENV
shell: bash
- name: Download default-branch-ref artifact
uses: actions/download-artifact@v4
with:
name: default-branch-ref
- name: Set tegola default branch ref
run: echo "DEFAULT_BRANCH_REF=$(cat default-branch-ref.txt)" >> $GITHUB_ENV
shell: bash
- name: Say goodbye
run: echo "goodbye! ${{ runner.os }} ${{ runner.arch }}"
shell: bash