-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.52 KB
/
prepare-release.yml
File metadata and controls
51 lines (46 loc) · 1.52 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
# Reuseable workflow to prepare a release using the hoverkraft-tech/ci-github-publish workflow
# Prepare for all the available images
---
name: Prepare Release
on:
workflow_call:
inputs:
runs-on:
description: |
JSON array of runner(s) to use.
See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job.
type: string
default: '["ubuntu-latest"]'
required: false
secrets:
github-token:
description: |
GitHub token with permissions `contents: read`, `pull-requests: write`.
concurrency:
group: ${{ github.workflow }}-images-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
get-available-images-matrix:
uses: ./.github/workflows/get-available-images-matrix.yml
permissions:
contents: read
id-token: write # Needed for getting local workflow actions
with:
runs-on: ${{ inputs.runs-on }}
prepare-release:
uses: hoverkraft-tech/ci-github-publish/.github/workflows/prepare-release.yml@b56be562f38e0e3e712f09691a8fe930aae9db1b # 0.22.0
needs: get-available-images-matrix
strategy:
matrix:
image: ${{ fromJson(needs.get-available-images-matrix.outputs.images-matrix) }}
fail-fast: false
permissions:
contents: read
id-token: write
pull-requests: write
with:
runs-on: ${{ inputs.runs-on }}
working-directory: images/${{ matrix.image }}
secrets:
github-token: ${{ secrets.github-token || null }}