-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
37 lines (29 loc) · 1.11 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
name: GitHub Metadata action
description: GitHub Metadata Action for Docker Buildx Bake.
author: Docker Bakery
branding:
color: white
icon: git-branch
inputs:
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 }}
outputs:
bake-file:
description: Bake definiton file
value: ${{ steps.meta.outputs.bake-file }}
runs:
using: composite
steps:
- run: echo "${{ github.action_path }}" >> $GITHUB_PATH
shell: bash
- name: GitHub Metadata action
id: meta
run: github-metadata-action.sh "${{ inputs.token }}"
shell: bash