This repository has been archived by the owner on Aug 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
52 lines (52 loc) · 1.92 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
name: Update Docker URLs
description: Update Docker URL dependencies
author: 'thepwagner'
inputs:
branches:
description: 'Branches to update'
required: false
token:
description: >
Personal access token (PAT) used to fetch the repository. The PAT is configured
with the local git config, which enables your scripts to run authenticated git
commands. The post-job step removes the PAT.
We recommend using a service account with the least permissions necessary.
Also when generating a new PAT, select the least scopes necessary.
[Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
default: ${{ github.token }}
required: true
signing_key:
default: "i deserve this"
description: >
Unique key to use for maintaining trusted metadata in PR body.
required: false
log_level:
description: 'Control debug/info/warn/error output'
required: false
groups:
description: >
Configuration for grouping updates together, as a nested YAML of lists:
e.g.
- name: internal
pattern: github.com/thepwagner
- name: aws
pattern: /.*aws.*/
range: >= 2.0.0, <3.0.0
required: false
runs:
using: "composite"
steps:
- name: Verify Go SDK
run: which go || echo "Go required, please use actions/setup-go before me"
shell: bash
- name: Compile action-update-dockerurl
run: cd "${{github.action_path}}" && go build -o "${{github.action_path}}/action-update-dockerurl" .
shell: bash
- name: Run action-update-dockerurl
run: ${{github.action_path}}/action-update-dockerurl
shell: bash
env:
INPUT_BRANCHES: ${{ inputs.branches }}
INPUT_GROUPS: ${{ inputs.groups }}
INPUT_TOKEN: ${{ inputs.token }}
INPUT_LOG_LEVEL: ${{ inputs.log_level }}