-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.59 KB
/
update-utils.yml
File metadata and controls
58 lines (54 loc) · 1.59 KB
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
name: Update Library
# Set environment variables available in all jobs and steps
env:
python_version: "3.9"
go_module: "utils"
on:
workflow_call:
inputs:
branch:
description:
"Branch to commit updated utils changes to:"
type: string
required: true
jobs:
update-go:
name: Update Go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.1
with:
# So that we have correct GIT_TOKEN to push back to branch as we need workflow permissions
token: ${{ secrets.GIT_SECRET }}
ref: ${{ inputs.branch || github.head_ref || github.ref }}
- name: Setup python
uses: actions/setup-python@v6
with:
python-version: ${{ env.python_version }}
- name: Install continuous-delivery-scripts
run: |
pip install continuous-delivery-scripts
- name: License files
run: |
cd-license-files
- name: Checkout Update Go action
uses: actions/checkout@v6.0.1
with:
repository: Arm-Debug/update-go-action
ref: refs/tags/latest
token: ${{ secrets.GIT_SECRET }}
persist-credentials: false
path: ./.github/workflows/update-go-action
- name: Update Go
uses: ./.github/workflows/update-go-action
with:
dockerfile: Dockerfile.utils
branch: ${{ inputs.branch || github.head_ref || github.ref }}
build-and-test:
name: Build and Test
needs:
- update-go
uses: ./.github/workflows/build-and-test.yml
secrets: inherit
with:
branch: ${{ inputs.branch || github.head_ref || github.ref }}