mirror of
https://github.com/docker/metadata-action.git
synced 2025-04-20 15:39:32 +02:00
Compare commits
No commits in common. "master" and "v2.2.0" have entirely different histories.
@ -1,12 +1,2 @@
|
|||||||
/coverage
|
/coverage
|
||||||
|
/node_modules
|
||||||
# Dependency directories
|
|
||||||
node_modules/
|
|
||||||
jspm_packages/
|
|
||||||
|
|
||||||
# yarn v2
|
|
||||||
.yarn/cache
|
|
||||||
.yarn/unplugged
|
|
||||||
.yarn/build-state.yml
|
|
||||||
.yarn/install-state.gz
|
|
||||||
.pnp.*
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
/dist/**
|
|
||||||
/coverage/**
|
|
||||||
/node_modules/**
|
|
@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"env": {
|
|
||||||
"node": true,
|
|
||||||
"es6": true,
|
|
||||||
"jest": true
|
|
||||||
},
|
|
||||||
"extends": [
|
|
||||||
"eslint:recommended",
|
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended",
|
|
||||||
"plugin:jest/recommended",
|
|
||||||
"plugin:prettier/recommended"
|
|
||||||
],
|
|
||||||
"parser": "@typescript-eslint/parser",
|
|
||||||
"parserOptions": {
|
|
||||||
"ecmaVersion": 2023,
|
|
||||||
"sourceType": "module"
|
|
||||||
},
|
|
||||||
"plugins": [
|
|
||||||
"@typescript-eslint",
|
|
||||||
"jest",
|
|
||||||
"prettier"
|
|
||||||
]
|
|
||||||
}
|
|
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -1,5 +1,2 @@
|
|||||||
/.yarn/releases/** binary
|
|
||||||
/.yarn/plugins/** binary
|
|
||||||
/__tests__/fixtures/** -linguist-detectable
|
|
||||||
/dist/** linguist-generated=true
|
/dist/** linguist-generated=true
|
||||||
/lib/** linguist-generated=true
|
/lib/** linguist-generated=true
|
||||||
|
1
.github/CODEOWNERS
vendored
Normal file
1
.github/CODEOWNERS
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
* @crazy-max
|
3
.github/CODE_OF_CONDUCT.md
vendored
3
.github/CODE_OF_CONDUCT.md
vendored
@ -1,3 +0,0 @@
|
|||||||
# Code of conduct
|
|
||||||
|
|
||||||
- [Moby community guidelines](https://github.com/moby/moby/blob/master/CONTRIBUTING.md#moby-community-guidelines)
|
|
4
.github/CONTRIBUTING.md
vendored
4
.github/CONTRIBUTING.md
vendored
@ -7,14 +7,14 @@ to the public under the [project's open source license](LICENSE).
|
|||||||
|
|
||||||
## Submitting a pull request
|
## Submitting a pull request
|
||||||
|
|
||||||
1. [Fork](https://github.com/docker/metadata-action/fork) and clone the repository
|
1. [Fork](https://github.com/crazy-max/ghaction-docker-meta/fork) and clone the repository
|
||||||
2. Configure and install the dependencies: `yarn install`
|
2. Configure and install the dependencies: `yarn install`
|
||||||
3. Create a new branch: `git checkout -b my-branch-name`
|
3. Create a new branch: `git checkout -b my-branch-name`
|
||||||
4. Make your changes
|
4. Make your changes
|
||||||
5. Make sure the tests pass: `docker buildx bake test`
|
5. Make sure the tests pass: `docker buildx bake test`
|
||||||
6. Format code and build javascript artifacts: `docker buildx bake pre-checkin`
|
6. Format code and build javascript artifacts: `docker buildx bake pre-checkin`
|
||||||
7. Validate all code has correctly formatted and built: `docker buildx bake validate`
|
7. Validate all code has correctly formatted and built: `docker buildx bake validate`
|
||||||
8. Push to your fork and [submit a pull request](https://github.com/docker/metadata-action/compare)
|
8. Push to your fork and [submit a pull request](https://github.com/crazy-max/ghaction-docker-meta/compare)
|
||||||
9. Pat your self on the back and wait for your pull request to be reviewed and merged.
|
9. Pat your self on the back and wait for your pull request to be reviewed and merged.
|
||||||
|
|
||||||
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
|
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
|
||||||
|
2
.github/FUNDING.yml
vendored
Normal file
2
.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
github: crazy-max
|
||||||
|
custom: https://www.paypal.me/crazyws
|
101
.github/ISSUE_TEMPLATE/bug.yml
vendored
101
.github/ISSUE_TEMPLATE/bug.yml
vendored
@ -1,101 +0,0 @@
|
|||||||
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema
|
|
||||||
name: Bug Report
|
|
||||||
description: Report a bug
|
|
||||||
labels:
|
|
||||||
- status/triage
|
|
||||||
|
|
||||||
body:
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: |
|
|
||||||
Thank you for taking the time to report a bug!
|
|
||||||
If this is a security issue please report it to the [Docker Security team](mailto:security@docker.com).
|
|
||||||
|
|
||||||
- type: checkboxes
|
|
||||||
attributes:
|
|
||||||
label: Contributing guidelines
|
|
||||||
description: >
|
|
||||||
Make sure you've read the contributing guidelines before proceeding.
|
|
||||||
options:
|
|
||||||
- label: I've read the [contributing guidelines](https://github.com/docker/metadata-action/blob/master/.github/CONTRIBUTING.md) and wholeheartedly agree
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: checkboxes
|
|
||||||
attributes:
|
|
||||||
label: "I've found a bug, and:"
|
|
||||||
description: |
|
|
||||||
Make sure that your request fulfills all of the following requirements.
|
|
||||||
If one requirement cannot be satisfied, explain in detail why.
|
|
||||||
options:
|
|
||||||
- label: The documentation does not mention anything about my problem
|
|
||||||
- label: There are no open or closed issues that are related to my problem
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Description
|
|
||||||
description: >
|
|
||||||
Provide a brief description of the bug in 1-2 sentences.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Expected behaviour
|
|
||||||
description: >
|
|
||||||
Describe precisely what you'd expect to happen.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Actual behaviour
|
|
||||||
description: >
|
|
||||||
Describe precisely what is actually happening.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: input
|
|
||||||
attributes:
|
|
||||||
label: Repository URL
|
|
||||||
description: >
|
|
||||||
Enter the URL of the repository where you are experiencing the
|
|
||||||
issue. If your repository is private, provide a link to a minimal
|
|
||||||
repository that reproduces the issue.
|
|
||||||
|
|
||||||
- type: input
|
|
||||||
attributes:
|
|
||||||
label: Workflow run URL
|
|
||||||
description: >
|
|
||||||
Enter the URL of the GitHub Action workflow run if public (e.g.
|
|
||||||
`https://github.com/<user>/<repo>/actions/runs/<id>`)
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: YAML workflow
|
|
||||||
description: |
|
|
||||||
Provide the YAML of the workflow that's causing the issue.
|
|
||||||
Make sure to remove any sensitive information.
|
|
||||||
render: yaml
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Workflow logs
|
|
||||||
description: >
|
|
||||||
[Attach](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/attaching-files)
|
|
||||||
the [log file of your workflow run](https://docs.github.com/en/actions/managing-workflow-runs/using-workflow-run-logs#downloading-logs)
|
|
||||||
and make sure to remove any sensitive information.
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: BuildKit logs
|
|
||||||
description: >
|
|
||||||
If applicable, provide the [BuildKit container logs](https://docs.docker.com/build/ci/github-actions/configure-builder/#buildkit-container-logs)
|
|
||||||
render: text
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Additional info
|
|
||||||
description: |
|
|
||||||
Provide any additional information that could be useful.
|
|
34
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
34
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
---
|
||||||
|
|
||||||
|
### Behaviour
|
||||||
|
|
||||||
|
#### Steps to reproduce this issue
|
||||||
|
|
||||||
|
1.
|
||||||
|
2.
|
||||||
|
3.
|
||||||
|
|
||||||
|
#### Expected behaviour
|
||||||
|
|
||||||
|
> Tell me what should happen
|
||||||
|
|
||||||
|
#### Actual behaviour
|
||||||
|
|
||||||
|
> Tell me what happens instead
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
* Repository URL (if public):
|
||||||
|
* Build URL (if public):
|
||||||
|
|
||||||
|
```yml
|
||||||
|
# paste your YAML workflow file here and remove sensitive data
|
||||||
|
```
|
||||||
|
|
||||||
|
### Logs
|
||||||
|
|
||||||
|
> Download the [log file of your build](https://docs.github.com/en/actions/managing-workflow-runs/using-workflow-run-logs#downloading-logs)
|
||||||
|
> and [attach it](https://docs.github.com/en/github/managing-your-work-on-github/file-attachments-on-issues-and-pull-requests) to this issue.
|
9
.github/ISSUE_TEMPLATE/config.yml
vendored
9
.github/ISSUE_TEMPLATE/config.yml
vendored
@ -1,9 +0,0 @@
|
|||||||
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
|
|
||||||
blank_issues_enabled: true
|
|
||||||
contact_links:
|
|
||||||
- name: Questions and Discussions
|
|
||||||
url: https://github.com/docker/metadata-action/discussions/new
|
|
||||||
about: Use Github Discussions to ask questions and/or open discussion topics.
|
|
||||||
- name: Documentation
|
|
||||||
url: https://docs.docker.com/build/ci/github-actions/
|
|
||||||
about: Read the documentation.
|
|
15
.github/ISSUE_TEMPLATE/feature.yml
vendored
15
.github/ISSUE_TEMPLATE/feature.yml
vendored
@ -1,15 +0,0 @@
|
|||||||
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema
|
|
||||||
name: Feature request
|
|
||||||
description: Missing functionality? Come tell us about it!
|
|
||||||
labels:
|
|
||||||
- kind/enhancement
|
|
||||||
- status/triage
|
|
||||||
|
|
||||||
body:
|
|
||||||
- type: textarea
|
|
||||||
id: description
|
|
||||||
attributes:
|
|
||||||
label: Description
|
|
||||||
description: What is the feature you want to see?
|
|
||||||
validations:
|
|
||||||
required: true
|
|
12
.github/SECURITY.md
vendored
12
.github/SECURITY.md
vendored
@ -1,12 +0,0 @@
|
|||||||
# Reporting security issues
|
|
||||||
|
|
||||||
The project maintainers take security seriously. If you discover a security
|
|
||||||
issue, please bring it to their attention right away!
|
|
||||||
|
|
||||||
**Please _DO NOT_ file a public issue**, instead send your report privately to
|
|
||||||
[security@docker.com](mailto:security@docker.com).
|
|
||||||
|
|
||||||
Security reports are greatly appreciated, and we will publicly thank you for it.
|
|
||||||
We also like to send gifts—if you'd like Docker swag, make sure to let
|
|
||||||
us know. We currently do not offer a paid security bounty program, but are not
|
|
||||||
ruling it out in the future.
|
|
29
.github/SUPPORT.md
vendored
Normal file
29
.github/SUPPORT.md
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# Support [](https://isitmaintained.com/project/crazy-max/ghaction-docker-meta)
|
||||||
|
|
||||||
|
## Reporting an issue
|
||||||
|
|
||||||
|
Please do a search in [open issues](https://github.com/crazy-max/ghaction-docker-meta/issues?utf8=%E2%9C%93&q=) to see if the issue or feature request has already been filed.
|
||||||
|
|
||||||
|
If you find your issue already exists, make relevant comments and add your [reaction](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments). Use a reaction in place of a "+1" comment.
|
||||||
|
|
||||||
|
:+1: - upvote
|
||||||
|
|
||||||
|
:-1: - downvote
|
||||||
|
|
||||||
|
If you cannot find an existing issue that describes your bug or feature, submit an issue using the guidelines below.
|
||||||
|
|
||||||
|
## Writing good bug reports and feature requests
|
||||||
|
|
||||||
|
File a single issue per problem and feature request.
|
||||||
|
|
||||||
|
* Do not enumerate multiple bugs or feature requests in the same issue.
|
||||||
|
* Do not add your issue as a comment to an existing issue unless it's for the identical input. Many issues look similar, but have different causes.
|
||||||
|
|
||||||
|
The more information you can provide, the more likely someone will be successful reproducing the issue and finding a fix.
|
||||||
|
|
||||||
|
You are now ready to [create a new issue](https://github.com/crazy-max/ghaction-docker-meta/issues/new/choose)!
|
||||||
|
|
||||||
|
## Closure policy
|
||||||
|
|
||||||
|
* Issues that don't have the information requested above (when applicable) will be closed immediately and the poster directed to the support guidelines.
|
||||||
|
* Issues that go a week without a response from original poster are subject to closure at my discretion.
|
13
.github/dependabot.yml
vendored
13
.github/dependabot.yml
vendored
@ -4,16 +4,19 @@ updates:
|
|||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
time: "06:00"
|
||||||
|
timezone: "Europe/Paris"
|
||||||
labels:
|
labels:
|
||||||
- "dependencies"
|
- ":game_die: dependencies"
|
||||||
- "bot"
|
- ":robot: bot"
|
||||||
- package-ecosystem: "npm"
|
- package-ecosystem: "npm"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
versioning-strategy: "increase"
|
time: "06:00"
|
||||||
|
timezone: "Europe/Paris"
|
||||||
allow:
|
allow:
|
||||||
- dependency-type: "production"
|
- dependency-type: "production"
|
||||||
labels:
|
labels:
|
||||||
- "dependencies"
|
- ":game_die: dependencies"
|
||||||
- "bot"
|
- ":robot: bot"
|
||||||
|
BIN
.github/ghaction-docker-meta.png
vendored
Normal file
BIN
.github/ghaction-docker-meta.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.5 KiB |
85
.github/labels.yml
vendored
Normal file
85
.github/labels.yml
vendored
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
## more info https://github.com/crazy-max/ghaction-github-labeler
|
||||||
|
- # automerge
|
||||||
|
name: ":bell: automerge"
|
||||||
|
color: "8f4fbc"
|
||||||
|
description: ""
|
||||||
|
- # bot
|
||||||
|
name: ":robot: bot"
|
||||||
|
color: "69cde9"
|
||||||
|
description: ""
|
||||||
|
- # bug
|
||||||
|
name: ":bug: bug"
|
||||||
|
color: "b60205"
|
||||||
|
description: ""
|
||||||
|
- # dependencies
|
||||||
|
name: ":game_die: dependencies"
|
||||||
|
color: "0366d6"
|
||||||
|
description: ""
|
||||||
|
- # documentation
|
||||||
|
name: ":memo: documentation"
|
||||||
|
color: "c5def5"
|
||||||
|
description: ""
|
||||||
|
- # duplicate
|
||||||
|
name: ":busts_in_silhouette: duplicate"
|
||||||
|
color: "cccccc"
|
||||||
|
description: ""
|
||||||
|
- # enhancement
|
||||||
|
name: ":sparkles: enhancement"
|
||||||
|
color: "0054ca"
|
||||||
|
description: ""
|
||||||
|
- # feature request
|
||||||
|
name: ":bulb: feature request"
|
||||||
|
color: "0e8a16"
|
||||||
|
description: ""
|
||||||
|
- # feedback
|
||||||
|
name: ":mega: feedback"
|
||||||
|
color: "03a9f4"
|
||||||
|
description: ""
|
||||||
|
- # future maybe
|
||||||
|
name: ":rocket: future maybe"
|
||||||
|
color: "fef2c0"
|
||||||
|
description: ""
|
||||||
|
- # good first issue
|
||||||
|
name: ":hatching_chick: good first issue"
|
||||||
|
color: "7057ff"
|
||||||
|
description: ""
|
||||||
|
- # help wanted
|
||||||
|
name: ":pray: help wanted"
|
||||||
|
color: "4caf50"
|
||||||
|
description: ""
|
||||||
|
- # invalid
|
||||||
|
name: ":no_entry_sign: invalid"
|
||||||
|
color: "e6e6e6"
|
||||||
|
description: ""
|
||||||
|
- # investigate
|
||||||
|
name: ":mag: investigate"
|
||||||
|
color: "e6625b"
|
||||||
|
description: ""
|
||||||
|
- # needs more info
|
||||||
|
name: ":thinking: needs more info"
|
||||||
|
color: "795548"
|
||||||
|
description: ""
|
||||||
|
- # pinned
|
||||||
|
name: ":pushpin: pinned"
|
||||||
|
color: "28008e"
|
||||||
|
description: ""
|
||||||
|
- # question
|
||||||
|
name: ":question: question"
|
||||||
|
color: "3f51b5"
|
||||||
|
description: ""
|
||||||
|
- # sponsor
|
||||||
|
name: ":sparkling_heart: sponsor"
|
||||||
|
color: "fedbf0"
|
||||||
|
description: ""
|
||||||
|
- # stale
|
||||||
|
name: ":skull: stale"
|
||||||
|
color: "237da0"
|
||||||
|
description: ""
|
||||||
|
- # upstream
|
||||||
|
name: ":eyes: upstream"
|
||||||
|
color: "fbca04"
|
||||||
|
description: ""
|
||||||
|
- # wontfix
|
||||||
|
name: ":coffin: wontfix"
|
||||||
|
color: "ffffff"
|
||||||
|
description: ""
|
BIN
.github/metadata-action.png
vendored
BIN
.github/metadata-action.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 7.5 KiB |
19
.github/stale.yml
vendored
Normal file
19
.github/stale.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Number of days of inactivity before an issue becomes stale
|
||||||
|
daysUntilStale: 30
|
||||||
|
# Number of days of inactivity before a stale issue is closed
|
||||||
|
daysUntilClose: 7
|
||||||
|
# Issues with these labels will never be considered stale
|
||||||
|
exemptLabels:
|
||||||
|
- ":pushpin: pinned"
|
||||||
|
- ":game_die: dependencies"
|
||||||
|
# Set to true to ignore issues in a milestone (defaults to false)
|
||||||
|
exemptMilestones: true
|
||||||
|
# Label to use when marking an issue as stale
|
||||||
|
staleLabel: ":skull: stale"
|
||||||
|
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||||
|
markComment: >
|
||||||
|
This issue has been automatically marked as stale because it has not had
|
||||||
|
recent activity. It will be closed if no further activity occurs. Thank you
|
||||||
|
for your contributions.
|
||||||
|
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||||
|
closeComment: false
|
442
.github/workflows/ci.yml
vendored
442
.github/workflows/ci.yml
vendored
@ -1,12 +1,8 @@
|
|||||||
name: ci
|
name: ci
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 10 * * *'
|
- cron: '0 */4 * * *' # every 4 hours
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
@ -14,42 +10,20 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- 'v*.*.*'
|
- 'v*.*.*'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
- 'releases/v*'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_IMAGE: localhost:5000/name/app
|
DOCKER_IMAGE: localhost:5000/name/app
|
||||||
BUILDX_VERSION: latest
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
context:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
context:
|
|
||||||
- workflow
|
|
||||||
- git
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
context: ${{ matrix.context }}
|
|
||||||
|
|
||||||
multi-images:
|
multi-images:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver: docker
|
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
uses: ./
|
uses: ./
|
||||||
@ -63,9 +37,6 @@ jobs:
|
|||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=sha
|
type=sha
|
||||||
-
|
|
||||||
name: Print envs
|
|
||||||
run: env|sort
|
|
||||||
|
|
||||||
tag-schedule:
|
tag-schedule:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -80,13 +51,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver: docker
|
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
uses: ./
|
uses: ./
|
||||||
@ -116,13 +81,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver: docker
|
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
uses: ./
|
uses: ./
|
||||||
@ -150,13 +109,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver: docker
|
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
uses: ./
|
uses: ./
|
||||||
@ -181,13 +134,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver: docker
|
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
uses: ./
|
uses: ./
|
||||||
@ -199,39 +146,12 @@ jobs:
|
|||||||
prefix=foo-
|
prefix=foo-
|
||||||
suffix=-bar
|
suffix=-bar
|
||||||
|
|
||||||
images:
|
labels:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver: docker
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
images: |
|
|
||||||
name=${{ env.DOCKER_IMAGE }}
|
|
||||||
name=ghcr.io/name/app,enable=${{ github.event_name == 'pull_request' }}
|
|
||||||
name=ghcr.io/name/release,enable=${{ startsWith(github.ref, 'refs/tags/') }}
|
|
||||||
|
|
||||||
custom-labels-annotations:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver: docker
|
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
uses: ./
|
uses: ./
|
||||||
@ -242,72 +162,8 @@ jobs:
|
|||||||
labels: |
|
labels: |
|
||||||
maintainer=CrazyMax
|
maintainer=CrazyMax
|
||||||
org.opencontainers.image.title=MyCustomTitle
|
org.opencontainers.image.title=MyCustomTitle
|
||||||
org.opencontainers.image.description=this is a "good" example
|
org.opencontainers.image.description=Another description
|
||||||
org.opencontainers.image.vendor=MyCompany
|
org.opencontainers.image.vendor=MyCompany
|
||||||
annotations: |
|
|
||||||
maintainer=Foo
|
|
||||||
org.opencontainers.image.title=MyFooTitle
|
|
||||||
org.opencontainers.image.description=this is a "foo" example
|
|
||||||
org.opencontainers.image.vendor=MyFooCompany
|
|
||||||
|
|
||||||
global-exps:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver: docker
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
images: |
|
|
||||||
${{ env.DOCKER_IMAGE }}
|
|
||||||
ghcr.io/name/app
|
|
||||||
labels: |
|
|
||||||
org.opencontainers.image.created={{commit_date 'YYYY-MM-DDTHH:mm:ss.SSS[Z]'}}
|
|
||||||
tags: |
|
|
||||||
type=sha
|
|
||||||
type=raw,value=gexp-branch-{{branch}}
|
|
||||||
type=raw,value=gexp-date-{{date 'YYYYMMDD'}}
|
|
||||||
type=raw,value=gexp-tag-{{tag}}
|
|
||||||
type=raw,value=gexp-baseref-{{base_ref}}
|
|
||||||
type=raw,value=gexp-defbranch,enable={{is_default_branch}}
|
|
||||||
|
|
||||||
json:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver: docker
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
images: |
|
|
||||||
${{ env.DOCKER_IMAGE }}
|
|
||||||
ghcr.io/name/app
|
|
||||||
labels: |
|
|
||||||
maintainer=CrazyMax
|
|
||||||
-
|
|
||||||
name: JSON output
|
|
||||||
run: |
|
|
||||||
echo "maintainer=${{ fromJSON(steps.meta.outputs.json).labels['maintainer'] }}"
|
|
||||||
echo "version=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}"
|
|
||||||
echo "revision=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}"
|
|
||||||
echo "created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}"
|
|
||||||
|
|
||||||
docker-push:
|
docker-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -319,20 +175,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver-opts: network=host
|
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
images: |
|
images: ${{ env.DOCKER_IMAGE }}
|
||||||
${{ env.DOCKER_IMAGE }}
|
|
||||||
tags: |
|
tags: |
|
||||||
type=schedule
|
type=schedule
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
@ -342,9 +191,17 @@ jobs:
|
|||||||
type=semver,pattern=v{{major}}.{{minor}}
|
type=semver,pattern=v{{major}}.{{minor}}
|
||||||
type=semver,pattern=v{{major}}
|
type=semver,pattern=v{{major}}
|
||||||
type=sha
|
type=sha
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
with:
|
||||||
|
driver-opts: network=host
|
||||||
-
|
-
|
||||||
name: Build and push to local registry
|
name: Build and push to local registry
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./test
|
context: ./test
|
||||||
file: ./test/Dockerfile
|
file: ./test/Dockerfile
|
||||||
@ -361,18 +218,17 @@ jobs:
|
|||||||
name: Check manifest
|
name: Check manifest
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools inspect ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }}
|
docker buildx imagetools inspect ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }}
|
||||||
|
-
|
||||||
|
name: Dump context
|
||||||
|
if: always()
|
||||||
|
uses: crazy-max/ghaction-dump-context@v1
|
||||||
|
|
||||||
bake:
|
bake:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
@ -390,244 +246,18 @@ jobs:
|
|||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern={{major}}
|
||||||
type=sha
|
type=sha
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/bake-action@v6
|
uses: docker/bake-action@v1
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
./test/docker-bake.hcl
|
./test/docker-bake.hcl
|
||||||
cwd://${{ steps.docker_meta.outputs.bake-file-tags }}
|
${{ steps.docker_meta.outputs.bake-file }}
|
||||||
cwd://${{ steps.docker_meta.outputs.bake-file-labels }}
|
|
||||||
targets: |
|
targets: |
|
||||||
release
|
release
|
||||||
|
|
||||||
sep-tags:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sep:
|
|
||||||
- " "
|
|
||||||
- ","
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver: docker
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
images: |
|
|
||||||
${{ env.DOCKER_IMAGE }}
|
|
||||||
ghcr.io/name/app
|
|
||||||
sep-tags: ${{ matrix.sep }}
|
|
||||||
-
|
|
||||||
name: Tags
|
|
||||||
uses: actions/github-script@v7
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
console.log(`${{ steps.meta.outputs.tags }}`);
|
|
||||||
|
|
||||||
output-env:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver: docker
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
images: |
|
|
||||||
${{ env.DOCKER_IMAGE }}
|
|
||||||
ghcr.io/name/app
|
|
||||||
labels: |
|
|
||||||
maintainer=CrazyMax
|
|
||||||
annotations: |
|
|
||||||
maintainer=Foo
|
|
||||||
-
|
|
||||||
name: Build
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: ./test
|
|
||||||
file: ./test/output.Dockerfile
|
|
||||||
build-args: |
|
|
||||||
DOCKER_METADATA_OUTPUT_VERSION
|
|
||||||
DOCKER_METADATA_OUTPUT_TAGS
|
|
||||||
DOCKER_METADATA_OUTPUT_LABELS
|
|
||||||
DOCKER_METADATA_OUTPUT_ANNOTATIONS
|
|
||||||
DOCKER_METADATA_OUTPUT_JSON
|
|
||||||
|
|
||||||
no-output-env:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
DOCKER_METADATA_SET_OUTPUT_ENV: false
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
images: |
|
|
||||||
${{ env.DOCKER_IMAGE }}
|
|
||||||
ghcr.io/name/app
|
|
||||||
labels: |
|
|
||||||
maintainer=CrazyMax
|
|
||||||
annotations: |
|
|
||||||
maintainer=Foo
|
|
||||||
-
|
|
||||||
name: No output environment variables set
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
[[ "$(printenv | grep "^DOCKER_METADATA_OUTPUT_" | wc -l)" -eq 0 ]] || exit 1
|
|
||||||
|
|
||||||
bake-annotations:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
id: docker_meta
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
images: |
|
|
||||||
${{ env.DOCKER_IMAGE }}
|
|
||||||
ghcr.io/name/app
|
|
||||||
tags: |
|
|
||||||
type=schedule
|
|
||||||
type=ref,event=branch
|
|
||||||
type=ref,event=tag
|
|
||||||
type=ref,event=pr
|
|
||||||
type=semver,pattern={{version}}
|
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
|
||||||
type=semver,pattern={{major}}
|
|
||||||
type=sha
|
|
||||||
env:
|
|
||||||
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
|
|
||||||
-
|
|
||||||
name: Build
|
|
||||||
uses: docker/bake-action@v6
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
./test/docker-bake.hcl
|
|
||||||
cwd://${{ steps.docker_meta.outputs.bake-file-tags }}
|
|
||||||
cwd://${{ steps.docker_meta.outputs.bake-file-annotations }}
|
|
||||||
targets: |
|
|
||||||
release
|
|
||||||
|
|
||||||
no-images:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver: docker
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
tags: |
|
|
||||||
type=schedule
|
|
||||||
type=ref,event=branch
|
|
||||||
type=ref,event=tag
|
|
||||||
type=ref,event=pr
|
|
||||||
type=sha
|
|
||||||
-
|
|
||||||
name: Print envs
|
|
||||||
run: env|sort
|
|
||||||
|
|
||||||
bake-path-context:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: latest
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
id: docker_meta
|
|
||||||
uses: ./
|
|
||||||
-
|
|
||||||
name: Build
|
|
||||||
uses: docker/bake-action@v6
|
|
||||||
with:
|
|
||||||
source: .
|
|
||||||
files: |
|
|
||||||
./test/docker-bake.hcl
|
|
||||||
${{ steps.docker_meta.outputs.bake-file-tags }}
|
|
||||||
${{ steps.docker_meta.outputs.bake-file-labels }}
|
|
||||||
targets: |
|
|
||||||
release
|
|
||||||
|
|
||||||
sha-short:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
short-length:
|
|
||||||
- ''
|
|
||||||
- 16
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: ${{ env.BUILDX_VERSION }}
|
|
||||||
driver: docker
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
images: |
|
|
||||||
${{ env.DOCKER_IMAGE }}
|
|
||||||
ghcr.io/name/app
|
|
||||||
tags: |
|
|
||||||
type=sha
|
|
||||||
env:
|
|
||||||
DOCKER_METADATA_SHORT_SHA_LENGTH: ${{ matrix.short-length }}
|
|
||||||
|
|
||||||
dump:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Dump context
|
|
||||||
uses: crazy-max/ghaction-dump-context@v2
|
|
||||||
|
21
.github/workflows/label-sponsor.yml
vendored
Normal file
21
.github/workflows/label-sponsor.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: label-sponsor
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- 'opened'
|
||||||
|
issues:
|
||||||
|
types:
|
||||||
|
- 'opened'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Set sponsor label
|
||||||
|
uses: JasonEtco/is-sponsor-label-action@024ac24f8b170abce078cad4ee748852369853c8
|
||||||
|
with:
|
||||||
|
label: ":sparkling_heart: sponsor"
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
20
.github/workflows/labels.yml
vendored
Normal file
20
.github/workflows/labels.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: labels
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
paths:
|
||||||
|
- '.github/labels.yml'
|
||||||
|
- '.github/workflows/labels.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
labeler:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
-
|
||||||
|
name: Run Labeler
|
||||||
|
uses: crazy-max/ghaction-github-labeler@v3
|
21
.github/workflows/publish.yml
vendored
21
.github/workflows/publish.yml
vendored
@ -1,21 +0,0 @@
|
|||||||
name: publish
|
|
||||||
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types:
|
|
||||||
- published
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
publish:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
id-token: write
|
|
||||||
packages: write
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: Publish
|
|
||||||
uses: actions/publish-immutable-action@v0.0.4
|
|
24
.github/workflows/test.yml
vendored
24
.github/workflows/test.yml
vendored
@ -1,28 +1,38 @@
|
|||||||
name: test
|
name: test
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
- 'releases/v*'
|
- 'releases/v*'
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
- 'releases/v*'
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
-
|
||||||
|
name: Validate
|
||||||
|
uses: docker/bake-action@v1
|
||||||
|
with:
|
||||||
|
targets: validate
|
||||||
-
|
-
|
||||||
name: Test
|
name: Test
|
||||||
uses: docker/bake-action@v6
|
uses: docker/bake-action@v1
|
||||||
with:
|
with:
|
||||||
targets: test
|
targets: test
|
||||||
-
|
-
|
||||||
name: Upload coverage
|
name: Upload coverage
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v1
|
||||||
with:
|
with:
|
||||||
file: ./coverage/clover.xml
|
file: ./coverage/clover.xml
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
|
43
.github/workflows/validate.yml
vendored
43
.github/workflows/validate.yml
vendored
@ -1,43 +0,0 @@
|
|||||||
name: validate
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'master'
|
|
||||||
- 'releases/v*'
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
prepare:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
targets: ${{ steps.generate.outputs.targets }}
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
-
|
|
||||||
name: List targets
|
|
||||||
id: generate
|
|
||||||
uses: docker/bake-action/subaction/list-targets@v6
|
|
||||||
with:
|
|
||||||
target: validate
|
|
||||||
|
|
||||||
validate:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- prepare
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
target: ${{ fromJson(needs.prepare.outputs.targets) }}
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Validate
|
|
||||||
uses: docker/bake-action@v6
|
|
||||||
with:
|
|
||||||
targets: ${{ matrix.target }}
|
|
71
.gitignore
vendored
71
.gitignore
vendored
@ -1,5 +1,12 @@
|
|||||||
# https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore
|
/.dev
|
||||||
|
node_modules/
|
||||||
|
lib
|
||||||
|
|
||||||
|
# Jetbrains
|
||||||
|
/.idea
|
||||||
|
/*.iml
|
||||||
|
|
||||||
|
# Rest of the file pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
|
||||||
# Logs
|
# Logs
|
||||||
logs
|
logs
|
||||||
*.log
|
*.log
|
||||||
@ -7,7 +14,6 @@ npm-debug.log*
|
|||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
.pnpm-debug.log*
|
|
||||||
|
|
||||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||||
@ -18,14 +24,34 @@ pids
|
|||||||
*.seed
|
*.seed
|
||||||
*.pid.lock
|
*.pid.lock
|
||||||
|
|
||||||
|
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||||
|
lib-cov
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
# Coverage directory used by tools like istanbul
|
||||||
coverage
|
coverage
|
||||||
*.lcov
|
*.lcov
|
||||||
|
|
||||||
|
# nyc test coverage
|
||||||
|
.nyc_output
|
||||||
|
|
||||||
|
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||||
|
.grunt
|
||||||
|
|
||||||
|
# Bower dependency directory (https://bower.io/)
|
||||||
|
bower_components
|
||||||
|
|
||||||
|
# node-waf configuration
|
||||||
|
.lock-wscript
|
||||||
|
|
||||||
|
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||||
|
build/Release
|
||||||
|
|
||||||
# Dependency directories
|
# Dependency directories
|
||||||
node_modules/
|
|
||||||
jspm_packages/
|
jspm_packages/
|
||||||
|
|
||||||
|
# TypeScript v1 declaration files
|
||||||
|
typings/
|
||||||
|
|
||||||
# TypeScript cache
|
# TypeScript cache
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
|
|
||||||
@ -35,19 +61,36 @@ jspm_packages/
|
|||||||
# Optional eslint cache
|
# Optional eslint cache
|
||||||
.eslintcache
|
.eslintcache
|
||||||
|
|
||||||
|
# Optional REPL history
|
||||||
|
.node_repl_history
|
||||||
|
|
||||||
|
# Output of 'npm pack'
|
||||||
|
*.tgz
|
||||||
|
|
||||||
# Yarn Integrity file
|
# Yarn Integrity file
|
||||||
.yarn-integrity
|
.yarn-integrity
|
||||||
|
|
||||||
# dotenv environment variable files
|
# dotenv environment variables file
|
||||||
.env
|
.env
|
||||||
.env.development.local
|
.env.test
|
||||||
.env.test.local
|
|
||||||
.env.production.local
|
|
||||||
.env.local
|
|
||||||
|
|
||||||
# yarn v2
|
# parcel-bundler cache (https://parceljs.org/)
|
||||||
.yarn/cache
|
.cache
|
||||||
.yarn/unplugged
|
|
||||||
.yarn/build-state.yml
|
# next.js build output
|
||||||
.yarn/install-state.gz
|
.next
|
||||||
.pnp.*
|
|
||||||
|
# nuxt.js build output
|
||||||
|
.nuxt
|
||||||
|
|
||||||
|
# vuepress build output
|
||||||
|
.vuepress/dist
|
||||||
|
|
||||||
|
# Serverless directories
|
||||||
|
.serverless/
|
||||||
|
|
||||||
|
# FuseBox cache
|
||||||
|
.fusebox/
|
||||||
|
|
||||||
|
# DynamoDB Local files
|
||||||
|
.dynamodb/
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
# Dependency directories
|
|
||||||
node_modules/
|
|
||||||
jspm_packages/
|
|
||||||
|
|
||||||
# yarn v2
|
|
||||||
.yarn/
|
|
541
.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
vendored
541
.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
vendored
File diff suppressed because one or more lines are too long
13
.yarnrc.yml
13
.yarnrc.yml
@ -1,13 +0,0 @@
|
|||||||
logFilters:
|
|
||||||
- code: YN0013
|
|
||||||
level: discard
|
|
||||||
- code: YN0019
|
|
||||||
level: discard
|
|
||||||
- code: YN0076
|
|
||||||
level: discard
|
|
||||||
|
|
||||||
nodeLinker: node-modules
|
|
||||||
|
|
||||||
plugins:
|
|
||||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
|
||||||
spec: "@yarnpkg/plugin-interactive-tools"
|
|
123
CHANGELOG.md
Normal file
123
CHANGELOG.md
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## 2.2.0 (2021/04/03)
|
||||||
|
|
||||||
|
* Improve logging (#58)
|
||||||
|
* Fix README (#56)
|
||||||
|
|
||||||
|
## 2.1.1 (2021/03/30)
|
||||||
|
|
||||||
|
* Fix `enable` tag attribute (#53)
|
||||||
|
* Bump y18n from 4.0.0 to 4.0.1 (#54)
|
||||||
|
|
||||||
|
## 2.1.0 (2021/03/29)
|
||||||
|
|
||||||
|
* Bump semver from 7.3.4 to 7.3.5 (#49)
|
||||||
|
* Enhance workflow (#51)
|
||||||
|
|
||||||
|
## 2.0.0 (2021/03/29)
|
||||||
|
|
||||||
|
This release includes significant changes (#50). Please read the [upgrade notes](UPGRADE.md) for a smooth migration.
|
||||||
|
`v1` is still available through [`releases/v1` branch](https://github.com/crazy-max/ghaction-docker-meta/tree/releases/v1).
|
||||||
|
|
||||||
|
* Add `tags` input
|
||||||
|
* Inputs `tag-sha`, `tag-edge`, `tag-edge-branch`, `tag-semver`, `tag-match`, `tag-match-group`, `tag-schedule`, `tag-custom`, `tag-custom-only` have been removed and are now handled through the new `tags` input
|
||||||
|
* Input `label-custom` renamed `labels`
|
||||||
|
* Add `flavor` input to handle a global prefix, suffix and latest tag behavior (#13 #15 #41)
|
||||||
|
* Input `tag-latest` removed (use `flavor` input instead)
|
||||||
|
* Manage tag sorting through `priority` attribute in `tags` input (#27)
|
||||||
|
* Explicit control over the conditions of each tag through `enable` attribute in `tags` input (#30)
|
||||||
|
* Allow `semver` and `match` parsing for custom values (#25 #30)
|
||||||
|
* Display warning message if not tag generated
|
||||||
|
|
||||||
|
## 1.12.0 (2021/03/19)
|
||||||
|
|
||||||
|
* Ignore commas for `label-custom` input (#48)
|
||||||
|
* Bump handlebars from 4.7.6 to 4.7.7 (#44)
|
||||||
|
* Bump csv-parse from 4.14.2 to 4.15.3 (#42 #45)
|
||||||
|
|
||||||
|
## 1.11.0 (2020/12/24)
|
||||||
|
|
||||||
|
* Inject `DOCKER_META_IMAGES` and `DOCKER_META_VERSION` args in bake definition (#37)
|
||||||
|
|
||||||
|
## 1.10.1 (2020/12/24)
|
||||||
|
|
||||||
|
* Missing entry in `action.yml`
|
||||||
|
|
||||||
|
## 1.10.0 (2020/12/24)
|
||||||
|
|
||||||
|
* Add `bake-file` output (#36)
|
||||||
|
* Add `label-custom` input (#35)
|
||||||
|
* Bump node-notifier from 8.0.0 to 8.0.1 (#33)
|
||||||
|
* Update dev workflow (#32)
|
||||||
|
|
||||||
|
## 1.9.1 (2020/12/07)
|
||||||
|
|
||||||
|
* Replace forbidden chars derived from branch name (#31)
|
||||||
|
* Bump semver from 7.3.2 to 7.3.4 (#26)
|
||||||
|
|
||||||
|
## 1.9.0 (2020/12/04)
|
||||||
|
|
||||||
|
* Allow to add custom tags (#24)
|
||||||
|
* Allow to disable latest tag (#23)
|
||||||
|
* Warn on invalid semver (#22)
|
||||||
|
* Avoid unnecessary calls to version (#21)
|
||||||
|
|
||||||
|
## 1.8.5 (2020/11/24)
|
||||||
|
|
||||||
|
* Use sepLabels when joining labels for output (#17)
|
||||||
|
|
||||||
|
## 1.8.4 (2020/11/20)
|
||||||
|
|
||||||
|
* Pre-release (rc, beta, alpha) will only extend `{{version}}` as tag for `tag-semver`
|
||||||
|
|
||||||
|
## 1.8.3 (2020/11/20)
|
||||||
|
|
||||||
|
* Lowercase image name (#16)
|
||||||
|
|
||||||
|
## 1.8.2 (2020/11/18)
|
||||||
|
|
||||||
|
* Remove duplicated tags
|
||||||
|
|
||||||
|
## 1.8.1 (2020/11/18)
|
||||||
|
|
||||||
|
* Missing input in `action.yml`
|
||||||
|
|
||||||
|
## 1.8.0 (2020/11/17)
|
||||||
|
|
||||||
|
* Handle semver tags (#14)
|
||||||
|
|
||||||
|
## 1.7.0 (2020/10/31)
|
||||||
|
|
||||||
|
* Use `repo.html_url` for `org.opencontainers.image.source` label to be able to display README on GHCR
|
||||||
|
* Handle `tag-match-latest` on Git tag event (#8)
|
||||||
|
|
||||||
|
## 1.6.0 (2020/10/28)
|
||||||
|
|
||||||
|
* Generate latest tag by default on push tag event (#5)
|
||||||
|
|
||||||
|
## 1.5.0 (2020/10/27)
|
||||||
|
|
||||||
|
* Add `tag-match-group` input to choose group to get if `tag-match` matches
|
||||||
|
* Check `tag-match` is a valid regex
|
||||||
|
|
||||||
|
## 1.4.0 (2020/10/27)
|
||||||
|
|
||||||
|
* Use RegExp to match against a Git tag instead of coerce
|
||||||
|
|
||||||
|
## 1.3.0 (2020/10/26)
|
||||||
|
|
||||||
|
* Set latest tag only if matches with a pattern
|
||||||
|
|
||||||
|
## 1.2.0 (2020/10/26)
|
||||||
|
|
||||||
|
* Coerces Git tag to semver (#3)
|
||||||
|
|
||||||
|
## 1.1.0 (2020/10/25)
|
||||||
|
|
||||||
|
* Allow to templatize schedule tag (#1)
|
||||||
|
* Allow to disable edge branch tagging (#2)
|
||||||
|
|
||||||
|
## 1.0.0 (2020/10/25)
|
||||||
|
|
||||||
|
* Initial version
|
204
LICENSE
204
LICENSE
@ -1,191 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
Apache License
|
Copyright (c) 2020-2021 CrazyMax
|
||||||
Version 2.0, January 2004
|
|
||||||
https://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
1. Definitions.
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
the copyright owner that is granting the License.
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
SOFTWARE.
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
Copyright 2013-2018 Docker, Inc.
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
https://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
680
README.md
680
README.md
@ -1,16 +1,22 @@
|
|||||||
[](https://github.com/docker/metadata-action/releases/latest)
|
[](https://github.com/crazy-max/ghaction-docker-meta/releases/latest)
|
||||||
[](https://github.com/marketplace/actions/docker-metadata-action)
|
[](https://github.com/marketplace/actions/docker-meta)
|
||||||
[](https://github.com/docker/metadata-action/actions?workflow=ci)
|
[](https://github.com/crazy-max/ghaction-docker-meta/actions?workflow=test)
|
||||||
[](https://github.com/docker/metadata-action/actions?workflow=test)
|
[](https://codecov.io/gh/crazy-max/ghaction-docker-meta)
|
||||||
[](https://codecov.io/gh/docker/metadata-action)
|
[](https://github.com/sponsors/crazy-max)
|
||||||
|
[](https://www.paypal.me/crazyws)
|
||||||
|
|
||||||
|
## Upgrade from v1
|
||||||
|
|
||||||
|
`v2` of this action includes significant changes. Please read the [upgrade notes](UPGRADE.md) for a smooth migration.
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
GitHub Action to extract metadata from Git reference and GitHub events. This action
|
GitHub Action to extract metadata (tags, labels) for Docker. This action is particularly useful if used with
|
||||||
is particularly useful if used with [Docker Build Push](https://github.com/docker/build-push-action)
|
[Docker Build Push](https://github.com/docker/build-push-action) action.
|
||||||
action to tag and label Docker images.
|
|
||||||
|
|
||||||

|
If you are interested, [check out](https://git.io/Je09Y) my other :octocat: GitHub Actions!
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
@ -21,36 +27,21 @@ ___
|
|||||||
* [Customizing](#customizing)
|
* [Customizing](#customizing)
|
||||||
* [inputs](#inputs)
|
* [inputs](#inputs)
|
||||||
* [outputs](#outputs)
|
* [outputs](#outputs)
|
||||||
* [environment variables](#environment-variables)
|
|
||||||
* [`context` input](#context-input)
|
|
||||||
* [`images` input](#images-input)
|
|
||||||
* [`flavor` input](#flavor-input)
|
* [`flavor` input](#flavor-input)
|
||||||
* [`tags` input](#tags-input)
|
* [`tags` input](#tags-input)
|
||||||
* [`type=schedule`](#typeschedule)
|
* [`type=schedule`](#typeschedule)
|
||||||
* [`type=semver`](#typesemver)
|
* [`type=semver`](#typesemver)
|
||||||
* [`type=pep440`](#typepep440)
|
|
||||||
* [`type=match`](#typematch)
|
* [`type=match`](#typematch)
|
||||||
* [`type=edge`](#typeedge)
|
* [`type=edge`](#typeedge)
|
||||||
* [`type=ref`](#typeref)
|
* [`type=ref`](#typeref)
|
||||||
* [`type=raw`](#typeraw)
|
* [`type=raw`](#typeraw)
|
||||||
* [`type=sha`](#typesha)
|
* [`type=sha`](#typesha)
|
||||||
* [Notes](#notes)
|
* [Notes](#notes)
|
||||||
* [Image name and tag sanitization](#image-name-and-tag-sanitization)
|
|
||||||
* [Latest tag](#latest-tag)
|
* [Latest tag](#latest-tag)
|
||||||
* [`priority` attribute](#priority-attribute)
|
* [Overwrite labels](#overwrite-labels)
|
||||||
* [Global expressions](#global-expressions)
|
* [Keep up-to-date with GitHub Dependabot](#keep-up-to-date-with-github-dependabot)
|
||||||
* [`{{branch}}`](#branch)
|
|
||||||
* [`{{tag}}`](#tag)
|
|
||||||
* [`{{sha}}`](#sha)
|
|
||||||
* [`{{base_ref}}`](#base_ref)
|
|
||||||
* [`{{is_default_branch}}`](#is_default_branch)
|
|
||||||
* [`{{date '<format>' tz='<timezone>'}}`](#date-format-tztimezone)
|
|
||||||
* [`{{commit_date '<format>' tz='<timezone>'}}`](#commit_date-format-tztimezone)
|
|
||||||
* [Major version zero](#major-version-zero)
|
|
||||||
* [JSON output object](#json-output-object)
|
|
||||||
* [Overwrite labels and annotations](#overwrite-labels-and-annotations)
|
|
||||||
* [Annotations](#annotations)
|
|
||||||
* [Contributing](#contributing)
|
* [Contributing](#contributing)
|
||||||
|
* [License](#license)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@ -60,7 +51,6 @@ ___
|
|||||||
name: ci
|
name: ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
@ -76,23 +66,23 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: crazy-max/ghaction-docker-meta@v2
|
||||||
with:
|
with:
|
||||||
images: name/app
|
images: name/app
|
||||||
-
|
-
|
||||||
name: Login to DockerHub
|
name: Login to DockerHub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
@ -101,13 +91,12 @@ jobs:
|
|||||||
```
|
```
|
||||||
|
|
||||||
| Event | Ref | Docker Tags |
|
| Event | Ref | Docker Tags |
|
||||||
|---------------------|-------------------------------|----------------------------|
|
|-----------------|-------------------------------|-------------------------------------|
|
||||||
| `pull_request` | `refs/pull/2/merge` | `pr-2` |
|
| `pull_request` | `refs/pull/2/merge` | `pr-2` |
|
||||||
| `push` | `refs/heads/master` | `master` |
|
| `push` | `refs/heads/master` | `master` |
|
||||||
| `push` | `refs/heads/releases/v1` | `releases-v1` |
|
| `push` | `refs/heads/releases/v1` | `releases-v1` |
|
||||||
| `push tag` | `refs/tags/v1.2.3` | `v1.2.3`, `latest` |
|
| `push tag` | `refs/tags/v1.2.3` | `v1.2.3`, `latest` |
|
||||||
| `push tag` | `refs/tags/v2.0.8-beta.67` | `v2.0.8-beta.67`, `latest` |
|
| `push tag` | `refs/tags/v2.0.8-beta.67` | `v2.0.8-beta.67`, `latest` |
|
||||||
| `workflow_dispatch` | `refs/heads/master` | `master` |
|
|
||||||
|
|
||||||
### Semver
|
### Semver
|
||||||
|
|
||||||
@ -130,14 +119,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: crazy-max/ghaction-docker-meta@v2
|
||||||
with:
|
with:
|
||||||
images: |
|
images: name/app
|
||||||
name/app
|
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
@ -146,13 +134,13 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Login to DockerHub
|
name: Login to DockerHub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
@ -171,24 +159,18 @@ jobs:
|
|||||||
### Bake definition
|
### Bake definition
|
||||||
|
|
||||||
This action also handles a bake definition file that can be used with the
|
This action also handles a bake definition file that can be used with the
|
||||||
[Docker Bake action](https://github.com/docker/bake-action). You just have to
|
[Docker Bake action](https://github.com/docker/bake-action). You just have to declare an empty target named
|
||||||
declare an empty target named `docker-metadata-action` and inherit from it.
|
`ghaction-docker-meta` and inherit from it.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
// docker-bake.hcl
|
// docker-bake.hcl
|
||||||
target "docker-metadata-action" {}
|
target "ghaction-docker-meta" {}
|
||||||
|
|
||||||
target "build" {
|
target "build" {
|
||||||
inherits = ["docker-metadata-action"]
|
inherits = ["ghaction-docker-meta"]
|
||||||
context = "./"
|
context = "./"
|
||||||
dockerfile = "Dockerfile"
|
dockerfile = "Dockerfile"
|
||||||
platforms = [
|
platforms = ["linux/amd64", "linux/arm/v6", "linux/arm/v7", "linux/arm64", "linux/386", "linux/ppc64le"]
|
||||||
"linux/amd64",
|
|
||||||
"linux/arm/v6",
|
|
||||||
"linux/arm/v7",
|
|
||||||
"linux/arm64",
|
|
||||||
"linux/386"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -206,13 +188,15 @@ jobs:
|
|||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: crazy-max/ghaction-docker-meta@v2
|
||||||
with:
|
with:
|
||||||
images: |
|
images: name/app
|
||||||
name/app
|
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
@ -221,21 +205,20 @@ jobs:
|
|||||||
type=sha
|
type=sha
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/bake-action@v6
|
uses: docker/bake-action@v1
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
./docker-bake.hcl
|
./docker-bake.hcl
|
||||||
cwd://${{ steps.meta.outputs.bake-file }}
|
${{ steps.meta.outputs.bake-file }}
|
||||||
targets: build
|
targets: build
|
||||||
```
|
```
|
||||||
|
|
||||||
Content of `${{ steps.meta.outputs.bake-file }}` file, combining tags and
|
Content of `${{ steps.meta.outputs.bake-file }}` file will look like this with `refs/tags/v1.2.3` ref:
|
||||||
labels, will look like this with `refs/tags/v1.2.3` ref:
|
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"target": {
|
"target": {
|
||||||
"docker-metadata-action": {
|
"ghaction-docker-meta": {
|
||||||
"tags": [
|
"tags": [
|
||||||
"name/app:1.2.3",
|
"name/app:1.2.3",
|
||||||
"name/app:1.2",
|
"name/app:1.2",
|
||||||
@ -249,7 +232,7 @@ labels, will look like this with `refs/tags/v1.2.3` ref:
|
|||||||
"org.opencontainers.image.source": "https://github.com/octocat/Hello-World",
|
"org.opencontainers.image.source": "https://github.com/octocat/Hello-World",
|
||||||
"org.opencontainers.image.version": "1.2.3",
|
"org.opencontainers.image.version": "1.2.3",
|
||||||
"org.opencontainers.image.created": "2020-01-10T00:30:00.000Z",
|
"org.opencontainers.image.created": "2020-01-10T00:30:00.000Z",
|
||||||
"org.opencontainers.image.revision": "860c1904a1ce19322e91ac35af1ab07466440c37",
|
"org.opencontainers.image.revision": "90dd6032fac8bda1b6c4436a2e65de27961ed071",
|
||||||
"org.opencontainers.image.licenses": "MIT"
|
"org.opencontainers.image.licenses": "MIT"
|
||||||
},
|
},
|
||||||
"args": {
|
"args": {
|
||||||
@ -261,27 +244,11 @@ labels, will look like this with `refs/tags/v1.2.3` ref:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also use the `bake-file-tags` and `bake-file-labels` outputs if you
|
|
||||||
just want to use tags and/or labels respectively. The following example is
|
|
||||||
similar to the previous one:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
-
|
|
||||||
name: Build
|
|
||||||
uses: docker/bake-action@v6
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
./docker-bake.hcl
|
|
||||||
cwd://${{ steps.meta.outputs.bake-file-tags }}
|
|
||||||
cwd://${{ steps.meta.outputs.bake-file-labels }}
|
|
||||||
targets: build
|
|
||||||
```
|
|
||||||
|
|
||||||
## Customizing
|
## Customizing
|
||||||
|
|
||||||
### inputs
|
### inputs
|
||||||
|
|
||||||
The following inputs can be used as `step.with` keys:
|
Following inputs can be used as `step.with` keys
|
||||||
|
|
||||||
> `List` type is a newline-delimited string
|
> `List` type is a newline-delimited string
|
||||||
> ```yaml
|
> ```yaml
|
||||||
@ -291,101 +258,30 @@ The following inputs can be used as `step.with` keys:
|
|||||||
> org.opencontainers.image.vendor=MyCompany
|
> org.opencontainers.image.vendor=MyCompany
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
|
> `CSV` type is a comma-delimited string
|
||||||
|
> ```yaml
|
||||||
|
> images: name/app,ghcr.io/name/app
|
||||||
|
> ```
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
|-------------------|--------|------------------------------------------------------------------------------|
|
|---------------------|----------|------------------------------------|
|
||||||
| `context` | String | Where to get context data. Allowed options are: `workflow` (default), `git`. |
|
| `images` | List/CSV | List of Docker images to use as base name for tags |
|
||||||
| `images` | List | List of Docker images to use as base name for tags |
|
|
||||||
| `tags` | List | List of [tags](#tags-input) as key-value pair attributes |
|
| `tags` | List | List of [tags](#tags-input) as key-value pair attributes |
|
||||||
| `flavor` | List | [Flavor](#flavor-input) to apply |
|
| `flavor` | List | [Flavor](#flavor-input) to apply |
|
||||||
| `labels` | List | List of custom labels |
|
| `labels` | List | List of custom labels |
|
||||||
| `annotations` | List | List of custom annotations |
|
|
||||||
| `sep-tags` | String | Separator to use for tags output (default `\n`) |
|
| `sep-tags` | String | Separator to use for tags output (default `\n`) |
|
||||||
| `sep-labels` | String | Separator to use for labels output (default `\n`) |
|
| `sep-labels` | String | Separator to use for labels output (default `\n`) |
|
||||||
| `sep-annotations` | String | Separator to use for annotations output (default `\n`) |
|
|
||||||
| `bake-target` | String | Bake target name (default `docker-metadata-action`) |
|
|
||||||
|
|
||||||
### outputs
|
### outputs
|
||||||
|
|
||||||
The following outputs are available:
|
Following outputs are available
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
|-------------------------|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|---------------|---------|---------------------------------------|
|
||||||
| `version` | String | Docker image version |
|
| `version` | String | Docker image version |
|
||||||
| `tags` | String | Docker tags |
|
| `tags` | String | Docker tags |
|
||||||
| `labels` | String | Docker labels |
|
| `labels` | String | Docker labels |
|
||||||
| `annotations` | String | [Annotations](https://github.com/moby/buildkit/blob/master/docs/annotations.md) |
|
| `bake-file` | File | [Bake definition file](https://github.com/docker/buildx#file-definition) path |
|
||||||
| `json` | String | JSON output of tags and labels |
|
|
||||||
| `bake-file-tags` | File | [Bake file definition](https://docs.docker.com/build/bake/reference/) path with tags |
|
|
||||||
| `bake-file-labels` | File | [Bake file definition](https://docs.docker.com/build/bake/reference/) path with labels |
|
|
||||||
| `bake-file-annotations` | File | [Bake file definition](https://docs.docker.com/build/bake/reference/) path with [annotations](https://github.com/moby/buildkit/blob/master/docs/annotations.md) |
|
|
||||||
|
|
||||||
Alternatively, each output is also exported as an environment variable when `DOCKER_METADATA_SET_OUTPUT_ENV` is `true`:
|
|
||||||
|
|
||||||
* `DOCKER_METADATA_OUTPUT_VERSION`
|
|
||||||
* `DOCKER_METADATA_OUTPUT_TAGS`
|
|
||||||
* `DOCKER_METADATA_OUTPUT_LABELS`
|
|
||||||
* `DOCKER_METADATA_OUTPUT_ANNOTATIONS`
|
|
||||||
* `DOCKER_METADATA_OUTPUT_JSON`
|
|
||||||
* `DOCKER_METADATA_OUTPUT_BAKE_FILE_TAGS`
|
|
||||||
* `DOCKER_METADATA_OUTPUT_BAKE_FILE_LABELS`
|
|
||||||
* `DOCKER_METADATA_OUTPUT_BAKE_FILE_ANNOTATIONS`
|
|
||||||
|
|
||||||
So it can be used with our [Docker Build Push action](https://github.com/docker/build-push-action/):
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
- uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
build-args: |
|
|
||||||
DOCKER_METADATA_OUTPUT_JSON
|
|
||||||
```
|
|
||||||
|
|
||||||
### environment variables
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
|--------------------------------------|--------|----------------------------------------------------------------------------------------------------------------------------------------------|
|
|
||||||
| `DOCKER_METADATA_PR_HEAD_SHA` | Bool | If `true`, set associated head SHA instead of commit SHA that triggered the workflow on pull request event |
|
|
||||||
| `DOCKER_METADATA_SHORT_SHA_LENGTH` | Number | Specifies the length of the [short commit SHA](#typesha) to ensure uniqueness. Default is `7`, but can be increased for larger repositories. |
|
|
||||||
| `DOCKER_METADATA_ANNOTATIONS_LEVELS` | String | Comma separated list of annotations levels to set for annotations output separated (default `manifest`) |
|
|
||||||
| `DOCKER_METADATA_SET_OUTPUT_ENV` | Bool | If `true`, sets each output as an environment variable (default `true`) |
|
|
||||||
|
|
||||||
## `context` input
|
|
||||||
|
|
||||||
`context` defines where to get context metadata:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
# default
|
|
||||||
context: workflow
|
|
||||||
# or
|
|
||||||
context: git
|
|
||||||
```
|
|
||||||
|
|
||||||
* `workflow`: Get context metadata from the workflow (GitHub context). See https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
|
|
||||||
* `git`: Get context metadata from the workflow and overrides some of them with current Git context, such as `ref` and `sha`.
|
|
||||||
|
|
||||||
## `images` input
|
|
||||||
|
|
||||||
`images` defines a list of Docker images to use as base name for [`tags`](#tags-input):
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
images: |
|
|
||||||
name/foo
|
|
||||||
ghcr.io/name/bar
|
|
||||||
# or
|
|
||||||
name=name/foo
|
|
||||||
name=ghcr.io/name/bar
|
|
||||||
```
|
|
||||||
|
|
||||||
Extended attributes and default values:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
images: |
|
|
||||||
name=,enable=true
|
|
||||||
```
|
|
||||||
|
|
||||||
* `name=<string>` image base name
|
|
||||||
* `enable=<true|false>` enable this entry (default `true`)
|
|
||||||
|
|
||||||
If `images` is empty, tags will be generated without base name.
|
|
||||||
|
|
||||||
## `flavor` input
|
## `flavor` input
|
||||||
|
|
||||||
@ -399,26 +295,23 @@ flavor: |
|
|||||||
```
|
```
|
||||||
|
|
||||||
* `latest=<auto|true|false>`: Handle [latest tag](#latest-tag) (default `auto`)
|
* `latest=<auto|true|false>`: Handle [latest tag](#latest-tag) (default `auto`)
|
||||||
* `prefix=<string>,onlatest=<true|false>`: A global prefix for each generated
|
* `prefix=<string>`: A global prefix for each generated tag
|
||||||
tag and optionally for `latest`
|
* `suffix=<string>`: A global suffix for each generated tag
|
||||||
* `suffix=<string>,onlatest=<true|false>`: A global suffix for each generated
|
|
||||||
tag and optionally for `latest`
|
|
||||||
|
|
||||||
## `tags` input
|
## `tags` input
|
||||||
|
|
||||||
`tags` is the core input of this action as everything related to it will
|
`tags` is the core input of this action as everything related to it will reflect the output metadata. This one is in
|
||||||
reflect the output metadata. This one is in the form of a key-value pair list
|
the form of a key-value pair list in CSV format to remove limitations intrinsically linked to GitHub Actions
|
||||||
in CSV format to remove limitations intrinsically linked to GitHub Actions
|
|
||||||
(only string format is handled in the input fields). Here is an example:
|
(only string format is handled in the input fields). Here is an example:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
tags: |
|
tags: |
|
||||||
type=schedule
|
type=schedule
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=pr
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern={{major}}
|
||||||
type=ref,event=branch
|
|
||||||
type=ref,event=pr
|
|
||||||
type=sha
|
type=sha
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -426,7 +319,6 @@ Each entry is defined by a `type`, which are:
|
|||||||
|
|
||||||
* [`type=schedule`](#typeschedule)
|
* [`type=schedule`](#typeschedule)
|
||||||
* [`type=semver`](#typesemver)
|
* [`type=semver`](#typesemver)
|
||||||
* [`type=pep440`](#typepep440)
|
|
||||||
* [`type=match`](#typematch)
|
* [`type=match`](#typematch)
|
||||||
* [`type=edge`](#typeedge)
|
* [`type=edge`](#typeedge)
|
||||||
* [`type=ref`](#typeref)
|
* [`type=ref`](#typeref)
|
||||||
@ -436,7 +328,7 @@ Each entry is defined by a `type`, which are:
|
|||||||
And global attributes:
|
And global attributes:
|
||||||
|
|
||||||
* `enable=<true|false>` enable this entry (default `true`)
|
* `enable=<true|false>` enable this entry (default `true`)
|
||||||
* `priority=<number>` set tag [priority](#priority-attribute) order
|
* `priority=<number>` priority to manage the order of tags
|
||||||
* `prefix=<string>` add prefix
|
* `prefix=<string>` add prefix
|
||||||
* `suffix=<string>` add suffix
|
* `suffix=<string>` add suffix
|
||||||
|
|
||||||
@ -460,23 +352,18 @@ tags: |
|
|||||||
type=schedule,pattern=nightly
|
type=schedule,pattern=nightly
|
||||||
# handlebars
|
# handlebars
|
||||||
type=schedule,pattern={{date 'YYYYMMDD'}}
|
type=schedule,pattern={{date 'YYYYMMDD'}}
|
||||||
# handlebars with timezone
|
|
||||||
type=schedule,pattern={{date 'YYYYMMDD-hhmmss' tz='Asia/Tokyo'}}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Will be used on [schedule event](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule).
|
Will be used on [schedule event](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#schedule).
|
||||||
|
|
||||||
`pattern` is a specially crafted attribute to support [Handlebars' template](https://handlebarsjs.com/guide/)
|
`pattern` is a specially crafted attribute to support [Handlebars template](https://handlebarsjs.com/guide/) with
|
||||||
with the following expressions:
|
the following expressions:
|
||||||
|
* `date 'format'` ; render date by its [moment format](https://momentjs.com/docs/#/displaying/format/)
|
||||||
* `date 'format' tz='Timezone'` ; render date by its [moment format](https://momentjs.com/docs/#/displaying/format/).
|
|
||||||
Default `tz` is UTC.
|
|
||||||
|
|
||||||
| Pattern | Output |
|
| Pattern | Output |
|
||||||
|----------------------------------------------|-------------------|
|
|--------------------------|----------------------|
|
||||||
| `nightly` | `nightly` |
|
| `nightly` | `nightly` |
|
||||||
| `{{date 'YYYYMMDD'}}` | `20200110` |
|
| `{{date 'YYYYMMDD'}}` | `20210326` |
|
||||||
| `{{date 'YYYYMMDD-HHmmss' tz='Asia/Tokyo'}}` | `20200110-093000` |
|
|
||||||
|
|
||||||
Extended attributes and default values:
|
Extended attributes and default values:
|
||||||
|
|
||||||
@ -495,14 +382,12 @@ tags: |
|
|||||||
type=semver,pattern={{version}},value=v1.0.0
|
type=semver,pattern={{version}},value=v1.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Will be used on a [push tag event](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push)
|
Will be used on a [push tag event](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push)
|
||||||
and requires a valid [semver](https://semver.org/) Git tag, but you can also
|
and requires a valid Git tag [semver](https://semver.org/) but you can also use a custom value through `value`
|
||||||
use a custom value through `value` attribute.
|
attribute.
|
||||||
|
|
||||||
`pattern` attribute supports [Handlebars template](https://handlebarsjs.com/guide/)
|
`pattern` attribute supports [Handlebars template](https://handlebarsjs.com/guide/) with the following expressions:
|
||||||
with the following expressions:
|
* `raw` ; the actual semver
|
||||||
|
|
||||||
* `raw` ; the actual tag
|
|
||||||
* `version` ; shorthand for `{{major}}.{{minor}}.{{patch}}` (can include pre-release)
|
* `version` ; shorthand for `{{major}}.{{minor}}.{{patch}}` (can include pre-release)
|
||||||
* `major` ; major version identifier
|
* `major` ; major version identifier
|
||||||
* `minor` ; minor version identifier
|
* `minor` ; minor version identifier
|
||||||
@ -516,14 +401,12 @@ with the following expressions:
|
|||||||
| `v1.2.3` | `v{{major}}` | `v1` |
|
| `v1.2.3` | `v{{major}}` | `v1` |
|
||||||
| `v1.2.3` | `{{minor}}` | `2` |
|
| `v1.2.3` | `{{minor}}` | `2` |
|
||||||
| `v1.2.3` | `{{patch}}` | `3` |
|
| `v1.2.3` | `{{patch}}` | `3` |
|
||||||
| `v2.0.8-beta.67` | `{{raw}}` | `v2.0.8-beta.67` |
|
| `v2.0.8-beta.67` | `{{raw}}` | `2.0.8-beta.67`* |
|
||||||
| `v2.0.8-beta.67` | `{{version}}` | `2.0.8-beta.67` |
|
| `v2.0.8-beta.67` | `{{version}}` | `2.0.8-beta.67` |
|
||||||
| `v2.0.8-beta.67` | `{{major}}.{{minor}}` | `2.0.8-beta.67`* |
|
| `v2.0.8-beta.67` | `{{major}}.{{minor}}` | `2.0.8-beta.67`* |
|
||||||
|
|
||||||
> *Pre-release (rc, beta, alpha) will only extend `{{version}}` (or `{{raw}}`
|
> *Pre-release (rc, beta, alpha) will only extend `{{version}}` as tag because they are updated frequently,
|
||||||
> if specified) as tag because they are updated frequently, and contain many
|
> and contain many breaking changes that are (by the author's design) not yet fit for public consumption.
|
||||||
> breaking changes that are (by the author's design) not yet fit for public
|
|
||||||
> consumption.
|
|
||||||
|
|
||||||
Extended attributes and default values:
|
Extended attributes and default values:
|
||||||
|
|
||||||
@ -532,55 +415,6 @@ tags: |
|
|||||||
type=semver,enable=true,priority=900,prefix=,suffix=,pattern=,value=
|
type=semver,enable=true,priority=900,prefix=,suffix=,pattern=,value=
|
||||||
```
|
```
|
||||||
|
|
||||||
### `type=pep440`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
tags: |
|
|
||||||
# minimal
|
|
||||||
type=pep440,pattern={{version}}
|
|
||||||
# use custom value instead of git tag
|
|
||||||
type=pep440,pattern={{version}},value=1.0.0
|
|
||||||
```
|
|
||||||
|
|
||||||
Will be used on a [push tag event](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push)
|
|
||||||
and requires a Git tag that conforms to [PEP 440](https://www.python.org/dev/peps/pep-0440/),
|
|
||||||
but you can also use a custom value through `value` attribute.
|
|
||||||
|
|
||||||
`pattern` attribute supports [Handlebars template](https://handlebarsjs.com/guide/)
|
|
||||||
with the following expressions:
|
|
||||||
|
|
||||||
* `raw` ; the actual tag
|
|
||||||
* `version` ; cleaned version
|
|
||||||
* `major` ; major version identifier
|
|
||||||
* `minor` ; minor version identifier
|
|
||||||
* `patch` ; patch version identifier
|
|
||||||
|
|
||||||
| Git tag | Pattern | Output |
|
|
||||||
|--------------------|----------------------------------------------------------|----------------------|
|
|
||||||
| `1.2.3` | `{{raw}}` | `1.2.3` |
|
|
||||||
| `1.2.3` | `{{version}}` | `1.2.3` |
|
|
||||||
| `v1.2.3` | `{{version}}` | `1.2.3` |
|
|
||||||
| `1.2.3` | `{{major}}.{{minor}}` | `1.2` |
|
|
||||||
| `1.2.3` | `v{{major}}` | `v1` |
|
|
||||||
| `v1.2.3rc2` | `{{raw}}` | `v1.2.3rc2` |
|
|
||||||
| `1.2.3rc2` | `{{version}}` | `1.2.3rc2` |
|
|
||||||
| `1.2.3rc2` | `{{major}}.{{minor}}` | `1.2.3rc2`* |
|
|
||||||
| `1.2.3post1` | `{{major}}.{{minor}}` | `1.2.3.post1`* |
|
|
||||||
| `1.2.3beta2` | `{{major}}.{{minor}}` | `1.2.3b2`* |
|
|
||||||
| `1.0dev4` | `{{major}}.{{minor}}` | `1.0.dev4`* |
|
|
||||||
|
|
||||||
> *dev/pre/post release will only extend `{{version}}` (or `{{raw}}` if
|
|
||||||
> specified) as tag because they are updated frequently, and contain many
|
|
||||||
> breaking changes that are (by the author's design) not yet fit for public
|
|
||||||
> consumption.
|
|
||||||
|
|
||||||
Extended attributes and default values:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
tags: |
|
|
||||||
type=pep440,enable=true,priority=900,prefix=,suffix=,pattern=,value=
|
|
||||||
```
|
|
||||||
|
|
||||||
### `type=match`
|
### `type=match`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@ -593,17 +427,16 @@ tags: |
|
|||||||
type=match,pattern=v(.*),group=1,value=v1.0.0
|
type=match,pattern=v(.*),group=1,value=v1.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Can create a regular expression for matching Git tag with a pattern and
|
Can create a regular expression for matching Git tag with a pattern and capturing group. Will be used on a
|
||||||
capturing group. Will be used on a [push tag event](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push)
|
[push tag event](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push) but you can also use
|
||||||
but, you can also use a custom value through `value` attribute.
|
a custom value through `value` attribute.
|
||||||
|
|
||||||
| Git tag | Pattern | Group | Output |
|
| Git tag | Pattern | Group | Output |
|
||||||
|-------------------------|------------------|---------|------------------------|
|
|-------------------------|-------------------------------|---------|------------------------|
|
||||||
| `v1.2.3` | `\d.\d.\d` | `0` | `1.2.3` |
|
| `v1.2.3` | `\d.\d.\d` | `0` | `1.2.3` |
|
||||||
| `v2.0.8-beta.67` | `v(.*)` | `1` | `2.0.8-beta.67` |
|
| `v2.0.8-beta.67` | `v(.*)` | `1` | `2.0.8-beta.67` |
|
||||||
| `v2.0.8-beta.67` | `v(\d.\d)` | `1` | `2.0` |
|
| `v2.0.8-beta.67` | `v(\d.\d)` | `1` | `2.0` |
|
||||||
| `20200110-RC2` | `\d+` | `0` | `20200110` |
|
| `20200110-RC2` | `\d+` | `0` | `20200110` |
|
||||||
| `p1/v1.2.3` | `p1/v(\d.\d.\d)` | `1` | `1.2.3` |
|
|
||||||
|
|
||||||
Extended attributes and default values:
|
Extended attributes and default values:
|
||||||
|
|
||||||
@ -622,9 +455,9 @@ tags: |
|
|||||||
type=edge,branch=main
|
type=edge,branch=main
|
||||||
```
|
```
|
||||||
|
|
||||||
An `edge` tag reflects the last commit of the active branch on your Git
|
An `edge` tag reflects the last commit of the active branch on your Git repository. I usually prefer to use `edge`
|
||||||
repository. I usually prefer to use `edge` as a Docker tag for a better
|
as a Docker tag for a better distinction or common pattern. This is also used by official images
|
||||||
distinction or common pattern. This is also used by official images like [Alpine](https://hub.docker.com/_/alpine).
|
like [Alpine](https://hub.docker.com/_/alpine).
|
||||||
|
|
||||||
Extended attributes and default values:
|
Extended attributes and default values:
|
||||||
|
|
||||||
@ -637,39 +470,37 @@ tags: |
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
tags: |
|
tags: |
|
||||||
# branch event
|
# minimal branch event
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
# tag event
|
# minimal tag event
|
||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
# pull request event
|
# minimal pull request event
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
```
|
```
|
||||||
|
|
||||||
This type handles Git ref (or reference) for the following events:
|
This type handles Git ref (or reference) for the following events:
|
||||||
|
|
||||||
* `branch` ; eg. `refs/heads/master`
|
* `branch` ; eg. `refs/heads/master`
|
||||||
* `tag` ; eg. `refs/tags/v1.0.0`
|
* `tag` ; eg. `refs/tags/v1.0.0`
|
||||||
* `pr` ; eg. `refs/pull/318/merge`
|
* `pr` ; eg. `refs/pull/318/merge`
|
||||||
|
|
||||||
| Event | Ref | Output |
|
| Event | Ref | Output |
|
||||||
|---------------------|-------------------------------|------------------|
|
|-----------------|-------------------------------|-------------------------------|
|
||||||
| `pull_request` | `refs/pull/2/merge` | `pr-2` |
|
| `pull_request` | `refs/pull/2/merge` | `pr-2` |
|
||||||
| `push` | `refs/heads/master` | `master` |
|
| `push` | `refs/heads/master` | `master` |
|
||||||
| `push` | `refs/heads/my/branch` | `my-branch` |
|
| `push` | `refs/heads/my/branch` | `my-branch` |
|
||||||
| `push tag` | `refs/tags/v1.2.3` | `v1.2.3` |
|
| `push tag` | `refs/tags/v1.2.3` | `v1.2.3` |
|
||||||
| `push tag` | `refs/tags/v2.0.8-beta.67` | `v2.0.8-beta.67` |
|
| `push tag` | `refs/tags/v2.0.8-beta.67` | `v2.0.8-beta.67` |
|
||||||
| `workflow_dispatch` | `refs/heads/master` | `master` |
|
|
||||||
|
|
||||||
Extended attributes and default values:
|
Extended attributes and default values:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
tags: |
|
tags: |
|
||||||
# branch event
|
# event branch
|
||||||
type=ref,enable=true,priority=600,prefix=,suffix=,event=branch
|
type=ref,enable=true,priority=600,prefix=,suffix=,event=
|
||||||
# tag event
|
# event tag
|
||||||
type=ref,enable=true,priority=600,prefix=,suffix=,event=tag
|
type=ref,enable=true,priority=600,prefix=,suffix=,event=
|
||||||
# pull request event
|
# event pr
|
||||||
type=ref,enable=true,priority=600,prefix=pr-,suffix=,event=pr
|
type=ref,enable=true,priority=600,prefix=pr-,suffix=,event=
|
||||||
```
|
```
|
||||||
|
|
||||||
### `type=raw`
|
### `type=raw`
|
||||||
@ -699,255 +530,38 @@ tags: |
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
tags: |
|
tags: |
|
||||||
# minimal (short sha)
|
# minimal
|
||||||
type=sha
|
type=sha
|
||||||
# full length sha
|
|
||||||
type=sha,format=long
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Output Git short commit (or long if specified) as Docker tag like
|
Output Git short commit as Docker tag like `sha-ad132f5`.
|
||||||
`sha-860c190`.
|
|
||||||
|
|
||||||
By default, the length of the short commit SHA is `7` characters. You can
|
|
||||||
increase this length for larger repositories by setting the
|
|
||||||
[`DOCKER_METADATA_SHORT_SHA_LENGTH` environment variable](#environment-variables):
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
images: |
|
|
||||||
name/app
|
|
||||||
tags: |
|
|
||||||
type=sha
|
|
||||||
env:
|
|
||||||
DOCKER_METADATA_SHORT_SHA_LENGTH: 12
|
|
||||||
```
|
|
||||||
|
|
||||||
Extended attributes and default values:
|
Extended attributes and default values:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
tags: |
|
tags: |
|
||||||
type=sha,enable=true,priority=100,prefix=sha-,suffix=,format=short
|
type=sha,enable=true,priority=100,prefix=sha-,suffix=
|
||||||
```
|
```
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
### Image name and tag sanitization
|
|
||||||
|
|
||||||
In order to comply with [the specification](https://docs.docker.com/engine/reference/commandline/tag/#description),
|
|
||||||
the image name components may contain lowercase letters, digits and separators.
|
|
||||||
A separator is defined as a period, one or two underscores, or one or more
|
|
||||||
dashes. A name component may not start or end with a separator.
|
|
||||||
|
|
||||||
A tag name must be a valid ASCII chars sequences and may contain lowercase and
|
|
||||||
uppercase letters, digits, underscores, periods and dashes. A tag name may not
|
|
||||||
start with a period or a dash and may contain a maximum of 128 characters.
|
|
||||||
|
|
||||||
To ease the integration in your workflow, this action will automatically:
|
|
||||||
|
|
||||||
* Lowercase the image name
|
|
||||||
* Replace invalid chars sequences with `-` for tags
|
|
||||||
|
|
||||||
### Latest tag
|
### Latest tag
|
||||||
|
|
||||||
`latest` tag is handled through the [`flavor` input](#flavor-input). It will be
|
`latest` tag is handled through the [`flavor` input](#flavor-input). It will be generated by default (`auto` mode) for:
|
||||||
generated by default (`auto` mode) for:
|
|
||||||
|
|
||||||
* [`type=ref,event=tag`](#typeref)
|
* [`type=ref,event=tag`](#typeref)
|
||||||
* [`type=semver,pattern=...`](#typesemver)
|
* [`type=semver,pattern=...`](#typesemver)
|
||||||
* [`type=pep440,pattern=...`](#typepep440)
|
|
||||||
* [`type=match,pattern=...`](#typematch)
|
* [`type=match,pattern=...`](#typematch)
|
||||||
|
|
||||||
For conditionally tagging with latest for a specific branch name, e.g. if your
|
### Overwrite labels
|
||||||
default branch name is not `master`, use `type=raw` with a boolean expression:
|
|
||||||
|
|
||||||
```yaml
|
If some of the [OCI Image Format Specification](https://github.com/opencontainers/image-spec/blob/master/annotations.md)
|
||||||
tags: |
|
labels generated are not suitable, you can overwrite them like this:
|
||||||
# set latest tag for master branch
|
|
||||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
|
|
||||||
```
|
|
||||||
|
|
||||||
You can also use the [`{{is_default_branch}}` global expression](#is_default_branch)
|
|
||||||
to conditionally tag with latest for the default branch:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
tags: |
|
|
||||||
# set latest tag for default branch
|
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
|
||||||
```
|
|
||||||
|
|
||||||
### `priority` attribute
|
|
||||||
|
|
||||||
`priority=<int>` attribute is used to sort tags in the final list. The higher
|
|
||||||
the value, the higher the priority. The first tag in the list (higher priority)
|
|
||||||
will be used as the image version for generated OCI label and [`version` output](#outputs).
|
|
||||||
Each tags `type` attribute has a default priority:
|
|
||||||
|
|
||||||
| Attribute | Default priority |
|
|
||||||
|------------|------------------|
|
|
||||||
| `schedule` | `1000` |
|
|
||||||
| `semver` | `900` |
|
|
||||||
| `pep440` | `900` |
|
|
||||||
| `match` | `800` |
|
|
||||||
| `edge` | `700` |
|
|
||||||
| `ref` | `600` |
|
|
||||||
| `raw` | `200` |
|
|
||||||
| `sha` | `100` |
|
|
||||||
|
|
||||||
### Global expressions
|
|
||||||
|
|
||||||
The following [Handlebars' template](https://handlebarsjs.com/guide/) expressions
|
|
||||||
for `prefix`, `suffix`, `value` and `enable` attributes of `tags` input are
|
|
||||||
available:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
tags: |
|
|
||||||
# dynamically set the branch name as a prefix
|
|
||||||
type=sha,prefix={{branch}}-
|
|
||||||
# dynamically set the branch name and sha as a custom tag
|
|
||||||
type=raw,value=mytag-{{branch}}-{{sha}}
|
|
||||||
```
|
|
||||||
|
|
||||||
They can also be applied to `labels` and `annotations` inputs:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
labels: |
|
|
||||||
org.opencontainers.image.created={{commit_date 'YYYY-MM-DDTHH:mm:ss.SSS[Z]'}}
|
|
||||||
```
|
|
||||||
|
|
||||||
#### `{{branch}}`
|
|
||||||
|
|
||||||
Returns the branch name that triggered the workflow run. Will be empty if not
|
|
||||||
a branch reference:
|
|
||||||
|
|
||||||
| Event | Ref | Output |
|
|
||||||
|----------------|------------------------|-------------|
|
|
||||||
| `pull_request` | `refs/pull/2/merge` | |
|
|
||||||
| `push` | `refs/heads/master` | `master` |
|
|
||||||
| `push` | `refs/heads/my/branch` | `my-branch` |
|
|
||||||
| `push tag` | `refs/tags/v1.2.3` | |
|
|
||||||
|
|
||||||
#### `{{tag}}`
|
|
||||||
|
|
||||||
Returns the tag name that triggered the workflow run. Will be empty if not a
|
|
||||||
tag reference:
|
|
||||||
|
|
||||||
| Event | Ref | Output |
|
|
||||||
|-----------------|-------------------------------|--------------------|
|
|
||||||
| `pull_request` | `refs/pull/2/merge` | |
|
|
||||||
| `push` | `refs/heads/master` | |
|
|
||||||
| `push` | `refs/heads/my/branch` | |
|
|
||||||
| `push tag` | `refs/tags/v1.2.3` | `v1.2.3` |
|
|
||||||
|
|
||||||
#### `{{sha}}`
|
|
||||||
|
|
||||||
Returns the short commit SHA that triggered the workflow run (e.g., `90dd603`).
|
|
||||||
|
|
||||||
#### `{{base_ref}}`
|
|
||||||
|
|
||||||
Returns the base ref or target branch of the pull request that triggered the
|
|
||||||
workflow run. Will be empty for a branch reference:
|
|
||||||
|
|
||||||
| Event | Ref | Output |
|
|
||||||
|----------------|-------------------------------|--------------------|
|
|
||||||
| `pull_request` | `refs/pull/2/merge` | `master` |
|
|
||||||
| `push` | `refs/heads/master` | |
|
|
||||||
| `push` | `refs/heads/my/branch` | |
|
|
||||||
| `push tag`* | `refs/tags/v1.2.3` | `master` |
|
|
||||||
|
|
||||||
> *`base_ref` is available in the push payload but doesn't always seem to
|
|
||||||
> return the expected branch when the push tag event occurs. It's also
|
|
||||||
> [not documented in GitHub docs](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push).
|
|
||||||
> We keep it for backward compatibility, but it's **not recommended relying on it**.
|
|
||||||
> More context in [#192](https://github.com/docker/metadata-action/pull/192#discussion_r854673012).
|
|
||||||
|
|
||||||
#### `{{is_default_branch}}`
|
|
||||||
|
|
||||||
Returns `true` if the branch that triggered the workflow run is the default
|
|
||||||
one, otherwise `false`.
|
|
||||||
|
|
||||||
#### `{{date '<format>' tz='<timezone>'}}`
|
|
||||||
|
|
||||||
Returns the current date rendered by its [moment format](https://momentjs.com/docs/#/displaying/format/).
|
|
||||||
Default `tz` is UTC.
|
|
||||||
|
|
||||||
| Expression | Output example |
|
|
||||||
|----------------------------------------------|-----------------------------------------|
|
|
||||||
| `{{date 'YYYYMMDD'}}` | `20200110` |
|
|
||||||
| `{{date 'dddd, MMMM Do YYYY, h:mm:ss a'}}` | `Friday, January 10th 2020, 3:25:50 pm` |
|
|
||||||
| `{{date 'YYYYMMDD-HHmmss' tz='Asia/Tokyo'}}` | `20200110-093000` |
|
|
||||||
|
|
||||||
#### `{{commit_date '<format>' tz='<timezone>'}}`
|
|
||||||
|
|
||||||
Returns the date when the current git commit is committed, rendered by its
|
|
||||||
[moment format](https://momentjs.com/docs/#/displaying/format/). It falls back
|
|
||||||
to the current date if the commit date is not available.
|
|
||||||
|
|
||||||
Default `tz` is UTC.
|
|
||||||
|
|
||||||
| Expression | Output example |
|
|
||||||
|-----------------------------------------------------|-----------------------------------------|
|
|
||||||
| `{{commit_date 'YYYYMMDD'}}` | `20200110` |
|
|
||||||
| `{{commit_date 'dddd, MMMM Do YYYY, h:mm:ss a'}}` | `Friday, January 10th 2020, 3:25:50 pm` |
|
|
||||||
| `{{commit_date 'YYYYMMDD-HHmmss' tz='Asia/Tokyo'}}` | `20200110-093000` |
|
|
||||||
|
|
||||||
### Major version zero
|
|
||||||
|
|
||||||
Major version zero (`0.y.z`) is for initial development and **may** change at
|
|
||||||
any time. This means the public API [**should not** be considered stable](https://semver.org/#spec-item-4).
|
|
||||||
|
|
||||||
In this case, Docker tag `0` **should not** be generated if you're using [`type=semver`](#typesemver)
|
|
||||||
with `{{major}}` pattern. You can manage this behavior like this:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
# refs/tags/v0.1.2
|
|
||||||
tags: |
|
|
||||||
# output 0.1.2
|
|
||||||
type=semver,pattern={{version}}
|
|
||||||
# output 0.1
|
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
|
||||||
# disabled if major zero
|
|
||||||
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
|
|
||||||
```
|
|
||||||
|
|
||||||
### JSON output object
|
|
||||||
|
|
||||||
The `json` output is a JSON object composed of the generated tags and labels so
|
|
||||||
that you can reuse them further in your workflow using the [`fromJSON` function](https://docs.github.com/en/actions/learn-github-actions/expressions#fromjson):
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
uses: docker/metadata-action@v5
|
id: docker_meta
|
||||||
id: meta
|
uses: crazy-max/ghaction-docker-meta@v2
|
||||||
with:
|
|
||||||
images: name/app
|
|
||||||
-
|
|
||||||
name: Build and push
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
|
||||||
build-args: |
|
|
||||||
BUILDTIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
|
||||||
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
|
|
||||||
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Overwrite labels and annotations
|
|
||||||
|
|
||||||
If some [OCI Image Format Specification](https://github.com/opencontainers/image-spec/blob/master/annotations.md)
|
|
||||||
generated are not suitable as labels/annotations, you can overwrite them like
|
|
||||||
this:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
with:
|
||||||
images: name/app
|
images: name/app
|
||||||
labels: |
|
labels: |
|
||||||
@ -957,79 +571,33 @@ this:
|
|||||||
org.opencontainers.image.vendor=MyCompany
|
org.opencontainers.image.vendor=MyCompany
|
||||||
```
|
```
|
||||||
|
|
||||||
### Annotations
|
## Keep up-to-date with GitHub Dependabot
|
||||||
|
|
||||||
Since Buildx 0.12, it is possible to set annotations to your image through the
|
Since [Dependabot](https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-github-dependabot)
|
||||||
`--annotation` flag.
|
has [native GitHub Actions support](https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#package-ecosystem),
|
||||||
|
to enable it on your GitHub repo all you need to do is add the `.github/dependabot.yml` file:
|
||||||
With the [`build-push-action`](https://github.com/docker/build-push-action/),
|
|
||||||
you can set the `annotations` input with the value of the `annotations` output
|
|
||||||
of the `metadata-action`:
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
-
|
version: 2
|
||||||
name: Docker meta
|
updates:
|
||||||
uses: docker/metadata-action@v5
|
# Maintain dependencies for GitHub Actions
|
||||||
with:
|
- package-ecosystem: "github-actions"
|
||||||
images: name/app
|
directory: "/"
|
||||||
-
|
schedule:
|
||||||
name: Build and push
|
interval: "daily"
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
annotations: ${{ steps.meta.outputs.annotations }}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The same can be done with the [`bake-action`](https://github.com/docker/bake-action/):
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
images: name/app
|
|
||||||
-
|
|
||||||
name: Build
|
|
||||||
uses: docker/bake-action@v6
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
./docker-bake.hcl
|
|
||||||
cwd://${{ steps.meta.outputs.bake-file-tags }}
|
|
||||||
cwd://${{ steps.meta.outputs.bake-file-annotations }}
|
|
||||||
targets: build
|
|
||||||
```
|
|
||||||
|
|
||||||
Note that annotations can be attached at many different levels within a manifest.
|
|
||||||
By default, the generated annotations will be attached to image manifests,
|
|
||||||
but different registries may expect annotations at different places;
|
|
||||||
a common practice is to read annotations at _image indexes_ if present,
|
|
||||||
which are often used by multi-arch builds to index platform-specific images.
|
|
||||||
If you want to specify level(s) for your annotations, you can use the
|
|
||||||
[`DOCKER_METADATA_ANNOTATIONS_LEVELS` environment variable](#environment-variables)
|
|
||||||
with a comma separated list of all levels the annotations should be attached to (defaults to `manifest`).
|
|
||||||
The following configuration demonstrates the ability to attach annotations to both image manifests and image indexes,
|
|
||||||
though your registry may only need annotations at the index level. (That is, `index` alone may be enough.)
|
|
||||||
Please consult the documentation of your registry.
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
-
|
|
||||||
name: Docker meta
|
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
images: name/app
|
|
||||||
env:
|
|
||||||
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
|
|
||||||
-
|
|
||||||
name: Build and push
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
annotations: ${{ steps.meta.outputs.annotations }}
|
|
||||||
```
|
|
||||||
|
|
||||||
More information about annotations in the [BuildKit documentation](https://github.com/moby/buildkit/blob/master/docs/annotations.md).
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Want to contribute? Awesome! You can find information about contributing to
|
Want to contribute? Awesome! The most basic way to show your support is to star :star2: the project,
|
||||||
this project in the [CONTRIBUTING.md](/.github/CONTRIBUTING.md)
|
or to raise issues :speech_balloon:. If you want to open a pull request, please read the
|
||||||
|
[contributing guidelines](.github/CONTRIBUTING.md).
|
||||||
|
|
||||||
|
You can also support this project by [**becoming a sponsor on GitHub**](https://github.com/sponsors/crazy-max) or by
|
||||||
|
making a [Paypal donation](https://www.paypal.me/crazyws) to ensure this journey continues indefinitely!
|
||||||
|
|
||||||
|
Thanks again for your support, it is much appreciated! :pray:
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
MIT. See `LICENSE` for more details.
|
||||||
|
294
UPGRADE.md
Normal file
294
UPGRADE.md
Normal file
@ -0,0 +1,294 @@
|
|||||||
|
# Upgrade notes
|
||||||
|
|
||||||
|
## v1 to v2
|
||||||
|
|
||||||
|
* [inputs](#inputs)
|
||||||
|
* [`tag-sha`](#tag-sha)
|
||||||
|
* [`tag-edge` / `tag-edge-branch`](#tag-edge--tag-edge-branch)
|
||||||
|
* [`tag-semver`](#tag-semver)
|
||||||
|
* [`tag-match` / `tag-match-group`](#tag-match--tag-match-group)
|
||||||
|
* [`tag-latest`](#tag-latest)
|
||||||
|
* [`tag-schedule`](#tag-schedule)
|
||||||
|
* [`tag-custom` / `tag-custom-only`](#tag-custom--tag-custom-only)
|
||||||
|
* [`label-custom`](#label-custom)
|
||||||
|
* [Basic workflow](#basic-workflow)
|
||||||
|
* [Semver workflow](#semver-workflow)
|
||||||
|
|
||||||
|
### inputs
|
||||||
|
|
||||||
|
| New | Unchanged | Removed |
|
||||||
|
|------------|-----------------|--------------------|
|
||||||
|
| `tags` | `images` | `tag-sha` |
|
||||||
|
| `flavor` | `sep-tags` | `tag-edge` |
|
||||||
|
| `labels` | `sep-labels` | `tag-edge-branch` |
|
||||||
|
| | | `tag-semver` |
|
||||||
|
| | | `tag-match` |
|
||||||
|
| | | `tag-match-group` |
|
||||||
|
| | | `tag-latest` |
|
||||||
|
| | | `tag-schedule` |
|
||||||
|
| | | `tag-custom` |
|
||||||
|
| | | `tag-custom-only` |
|
||||||
|
| | | `label-custom` |
|
||||||
|
|
||||||
|
#### `tag-sha`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
tags: |
|
||||||
|
type=sha
|
||||||
|
```
|
||||||
|
|
||||||
|
#### `tag-edge` / `tag-edge-branch`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
tags: |
|
||||||
|
# default branch
|
||||||
|
type=edge
|
||||||
|
# specify branch
|
||||||
|
type=edge,branch=main
|
||||||
|
```
|
||||||
|
|
||||||
|
#### `tag-semver`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
tags: |
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
```
|
||||||
|
|
||||||
|
#### `tag-match` / `tag-match-group`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
tags: |
|
||||||
|
type=match,pattern=v(.*),group=1
|
||||||
|
```
|
||||||
|
|
||||||
|
#### `tag-latest`
|
||||||
|
|
||||||
|
`tag-latest` is now handled through the [`flavor` input](README.md#flavor-input):
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
flavor: |
|
||||||
|
latest=auto
|
||||||
|
```
|
||||||
|
|
||||||
|
See also the notes about ["latest tag" behavior](README.md#latest-tag)
|
||||||
|
|
||||||
|
#### `tag-schedule`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
tags: |
|
||||||
|
# default tag (nightly)
|
||||||
|
type=schedule
|
||||||
|
# specific pattern
|
||||||
|
type=schedule,pattern={{date 'YYYYMMDD'}}
|
||||||
|
```
|
||||||
|
|
||||||
|
#### `tag-custom` / `tag-custom-only`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
tags: |
|
||||||
|
type=raw,value=foo
|
||||||
|
type=raw,value=bar
|
||||||
|
# or
|
||||||
|
type=raw,foo
|
||||||
|
type=raw,bar
|
||||||
|
# or
|
||||||
|
foo
|
||||||
|
bar
|
||||||
|
```
|
||||||
|
|
||||||
|
#### `label-custom`
|
||||||
|
|
||||||
|
Same behavior for `labels`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
labels: |
|
||||||
|
maintainer=CrazyMax
|
||||||
|
```
|
||||||
|
|
||||||
|
### Basic workflow
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# v1
|
||||||
|
name: ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
-
|
||||||
|
name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: crazy-max/ghaction-docker-meta@v1
|
||||||
|
with:
|
||||||
|
images: name/app
|
||||||
|
-
|
||||||
|
name: Login to DockerHub
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# v2
|
||||||
|
name: ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
-
|
||||||
|
name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: crazy-max/ghaction-docker-meta@v2
|
||||||
|
with:
|
||||||
|
images: name/app
|
||||||
|
-
|
||||||
|
name: Login to DockerHub
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Semver workflow
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# v1
|
||||||
|
name: ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
-
|
||||||
|
name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: crazy-max/ghaction-docker-meta@v1
|
||||||
|
with:
|
||||||
|
images: name/app
|
||||||
|
tag-semver: |
|
||||||
|
{{version}}
|
||||||
|
{{major}}.{{minor}}
|
||||||
|
-
|
||||||
|
name: Login to DockerHub
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# v2
|
||||||
|
name: ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
-
|
||||||
|
name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: crazy-max/ghaction-docker-meta@v2
|
||||||
|
with:
|
||||||
|
images: name/app
|
||||||
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=pr
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
-
|
||||||
|
name: Login to DockerHub
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
```
|
@ -1,223 +0,0 @@
|
|||||||
import {jest} from '@jest/globals';
|
|
||||||
|
|
||||||
export const context = {
|
|
||||||
repo: {
|
|
||||||
owner: 'docker',
|
|
||||||
repo: 'actions-toolkit'
|
|
||||||
},
|
|
||||||
ref: 'refs/heads/master',
|
|
||||||
runId: 123,
|
|
||||||
payload: {
|
|
||||||
after: '860c1904a1ce19322e91ac35af1ab07466440c37',
|
|
||||||
base_ref: null,
|
|
||||||
before: '5f3331d7f7044c18ca9f12c77d961c4d7cf3276a',
|
|
||||||
commits: [
|
|
||||||
{
|
|
||||||
author: {
|
|
||||||
email: 'crazy-max@users.noreply.github.com',
|
|
||||||
name: 'CrazyMax',
|
|
||||||
username: 'crazy-max'
|
|
||||||
},
|
|
||||||
committer: {
|
|
||||||
email: 'crazy-max@users.noreply.github.com',
|
|
||||||
name: 'CrazyMax',
|
|
||||||
username: 'crazy-max'
|
|
||||||
},
|
|
||||||
distinct: true,
|
|
||||||
id: '860c1904a1ce19322e91ac35af1ab07466440c37',
|
|
||||||
message: 'hello dev',
|
|
||||||
timestamp: '2022-04-19T11:27:24+02:00',
|
|
||||||
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
|
|
||||||
url: 'https://github.com/docker/test-docker-action/commit/860c1904a1ce19322e91ac35af1ab07466440c37'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
compare: 'https://github.com/docker/test-docker-action/compare/5f3331d7f704...860c1904a1ce',
|
|
||||||
created: false,
|
|
||||||
deleted: false,
|
|
||||||
forced: false,
|
|
||||||
head_commit: {
|
|
||||||
author: {
|
|
||||||
email: 'crazy-max@users.noreply.github.com',
|
|
||||||
name: 'CrazyMax',
|
|
||||||
username: 'crazy-max'
|
|
||||||
},
|
|
||||||
committer: {
|
|
||||||
email: 'crazy-max@users.noreply.github.com',
|
|
||||||
name: 'CrazyMax',
|
|
||||||
username: 'crazy-max'
|
|
||||||
},
|
|
||||||
distinct: true,
|
|
||||||
id: '860c1904a1ce19322e91ac35af1ab07466440c37',
|
|
||||||
message: 'hello dev',
|
|
||||||
timestamp: '2022-04-19T11:27:24+02:00',
|
|
||||||
tree_id: 'd2c60af597e863787d2d27f569e30495b0b92820',
|
|
||||||
url: 'https://github.com/docker/test-docker-action/commit/860c1904a1ce19322e91ac35af1ab07466440c37'
|
|
||||||
},
|
|
||||||
organization: {
|
|
||||||
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
|
|
||||||
description: 'Docker helps developers bring their ideas to life by conquering the complexity of app development.',
|
|
||||||
events_url: 'https://api.github.com/orgs/docker/events',
|
|
||||||
hooks_url: 'https://api.github.com/orgs/docker/hooks',
|
|
||||||
id: 5429470,
|
|
||||||
issues_url: 'https://api.github.com/orgs/docker/issues',
|
|
||||||
login: 'docker',
|
|
||||||
members_url: 'https://api.github.com/orgs/docker/members{/member}',
|
|
||||||
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
|
|
||||||
public_members_url: 'https://api.github.com/orgs/docker/public_members{/member}',
|
|
||||||
repos_url: 'https://api.github.com/orgs/docker/repos',
|
|
||||||
url: 'https://api.github.com/orgs/docker'
|
|
||||||
},
|
|
||||||
pusher: {
|
|
||||||
email: 'github@crazymax.dev',
|
|
||||||
name: 'crazy-max'
|
|
||||||
},
|
|
||||||
ref: 'refs/heads/dev',
|
|
||||||
repository: {
|
|
||||||
allow_forking: true,
|
|
||||||
archive_url: 'https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}',
|
|
||||||
archived: false,
|
|
||||||
assignees_url: 'https://api.github.com/repos/docker/test-docker-action/assignees{/user}',
|
|
||||||
blobs_url: 'https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}',
|
|
||||||
branches_url: 'https://api.github.com/repos/docker/test-docker-action/branches{/branch}',
|
|
||||||
clone_url: 'https://github.com/docker/test-docker-action.git',
|
|
||||||
collaborators_url: 'https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}',
|
|
||||||
comments_url: 'https://api.github.com/repos/docker/test-docker-action/comments{/number}',
|
|
||||||
commits_url: 'https://api.github.com/repos/docker/test-docker-action/commits{/sha}',
|
|
||||||
compare_url: 'https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}',
|
|
||||||
contents_url: 'https://api.github.com/repos/docker/test-docker-action/contents/{+path}',
|
|
||||||
contributors_url: 'https://api.github.com/repos/docker/test-docker-action/contributors',
|
|
||||||
created_at: 1596792180,
|
|
||||||
default_branch: 'master',
|
|
||||||
deployments_url: 'https://api.github.com/repos/docker/test-docker-action/deployments',
|
|
||||||
description: 'Test "Docker" Actions',
|
|
||||||
disabled: false,
|
|
||||||
downloads_url: 'https://api.github.com/repos/docker/test-docker-action/downloads',
|
|
||||||
events_url: 'https://api.github.com/repos/docker/test-docker-action/events',
|
|
||||||
fork: false,
|
|
||||||
forks: 1,
|
|
||||||
forks_count: 1,
|
|
||||||
forks_url: 'https://api.github.com/repos/docker/test-docker-action/forks',
|
|
||||||
full_name: 'docker/test-docker-action',
|
|
||||||
git_commits_url: 'https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}',
|
|
||||||
git_refs_url: 'https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}',
|
|
||||||
git_tags_url: 'https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}',
|
|
||||||
git_url: 'git://github.com/docker/test-docker-action.git',
|
|
||||||
has_downloads: true,
|
|
||||||
has_issues: true,
|
|
||||||
has_pages: false,
|
|
||||||
has_projects: true,
|
|
||||||
has_wiki: true,
|
|
||||||
homepage: '',
|
|
||||||
hooks_url: 'https://api.github.com/repos/docker/test-docker-action/hooks',
|
|
||||||
html_url: 'https://github.com/docker/test-docker-action',
|
|
||||||
id: 285789493,
|
|
||||||
is_template: false,
|
|
||||||
issue_comment_url: 'https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}',
|
|
||||||
issue_events_url: 'https://api.github.com/repos/docker/test-docker-action/issues/events{/number}',
|
|
||||||
issues_url: 'https://api.github.com/repos/docker/test-docker-action/issues{/number}',
|
|
||||||
keys_url: 'https://api.github.com/repos/docker/test-docker-action/keys{/key_id}',
|
|
||||||
labels_url: 'https://api.github.com/repos/docker/test-docker-action/labels{/name}',
|
|
||||||
language: 'JavaScript',
|
|
||||||
languages_url: 'https://api.github.com/repos/docker/test-docker-action/languages',
|
|
||||||
license: {
|
|
||||||
key: 'mit',
|
|
||||||
name: 'MIT License',
|
|
||||||
node_id: 'MDc6TGljZW5zZTEz',
|
|
||||||
spdx_id: 'MIT',
|
|
||||||
url: 'https://api.github.com/licenses/mit'
|
|
||||||
},
|
|
||||||
master_branch: 'master',
|
|
||||||
merges_url: 'https://api.github.com/repos/docker/test-docker-action/merges',
|
|
||||||
milestones_url: 'https://api.github.com/repos/docker/test-docker-action/milestones{/number}',
|
|
||||||
mirror_url: null,
|
|
||||||
name: 'test-docker-action',
|
|
||||||
node_id: 'MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=',
|
|
||||||
notifications_url: 'https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}',
|
|
||||||
open_issues: 6,
|
|
||||||
open_issues_count: 6,
|
|
||||||
organization: 'docker',
|
|
||||||
owner: {
|
|
||||||
avatar_url: 'https://avatars.githubusercontent.com/u/5429470?v=4',
|
|
||||||
email: 'info@docker.com',
|
|
||||||
events_url: 'https://api.github.com/users/docker/events{/privacy}',
|
|
||||||
followers_url: 'https://api.github.com/users/docker/followers',
|
|
||||||
following_url: 'https://api.github.com/users/docker/following{/other_user}',
|
|
||||||
gists_url: 'https://api.github.com/users/docker/gists{/gist_id}',
|
|
||||||
gravatar_id: '',
|
|
||||||
html_url: 'https://github.com/docker',
|
|
||||||
id: 5429470,
|
|
||||||
login: 'docker',
|
|
||||||
name: 'docker',
|
|
||||||
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=',
|
|
||||||
organizations_url: 'https://api.github.com/users/docker/orgs',
|
|
||||||
received_events_url: 'https://api.github.com/users/docker/received_events',
|
|
||||||
repos_url: 'https://api.github.com/users/docker/repos',
|
|
||||||
site_admin: false,
|
|
||||||
starred_url: 'https://api.github.com/users/docker/starred{/owner}{/repo}',
|
|
||||||
subscriptions_url: 'https://api.github.com/users/docker/subscriptions',
|
|
||||||
type: 'Organization',
|
|
||||||
url: 'https://api.github.com/users/docker'
|
|
||||||
},
|
|
||||||
private: true,
|
|
||||||
pulls_url: 'https://api.github.com/repos/docker/test-docker-action/pulls{/number}',
|
|
||||||
pushed_at: 1650360446,
|
|
||||||
releases_url: 'https://api.github.com/repos/docker/test-docker-action/releases{/id}',
|
|
||||||
size: 796,
|
|
||||||
ssh_url: 'git@github.com:docker/test-docker-action.git',
|
|
||||||
stargazers: 0,
|
|
||||||
stargazers_count: 0,
|
|
||||||
stargazers_url: 'https://api.github.com/repos/docker/test-docker-action/stargazers',
|
|
||||||
statuses_url: 'https://api.github.com/repos/docker/test-docker-action/statuses/{sha}',
|
|
||||||
subscribers_url: 'https://api.github.com/repos/docker/test-docker-action/subscribers',
|
|
||||||
subscription_url: 'https://api.github.com/repos/docker/test-docker-action/subscription',
|
|
||||||
svn_url: 'https://github.com/docker/test-docker-action',
|
|
||||||
tags_url: 'https://api.github.com/repos/docker/test-docker-action/tags',
|
|
||||||
teams_url: 'https://api.github.com/repos/docker/test-docker-action/teams',
|
|
||||||
topics: [],
|
|
||||||
trees_url: 'https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}',
|
|
||||||
updated_at: '2022-04-19T09:05:09Z',
|
|
||||||
url: 'https://github.com/docker/test-docker-action',
|
|
||||||
visibility: 'private',
|
|
||||||
watchers: 0,
|
|
||||||
watchers_count: 0
|
|
||||||
},
|
|
||||||
sender: {
|
|
||||||
avatar_url: 'https://avatars.githubusercontent.com/u/1951866?v=4',
|
|
||||||
events_url: 'https://api.github.com/users/crazy-max/events{/privacy}',
|
|
||||||
followers_url: 'https://api.github.com/users/crazy-max/followers',
|
|
||||||
following_url: 'https://api.github.com/users/crazy-max/following{/other_user}',
|
|
||||||
gists_url: 'https://api.github.com/users/crazy-max/gists{/gist_id}',
|
|
||||||
gravatar_id: '',
|
|
||||||
html_url: 'https://github.com/crazy-max',
|
|
||||||
id: 1951866,
|
|
||||||
login: 'crazy-max',
|
|
||||||
node_id: 'MDQ6VXNlcjE5NTE4NjY=',
|
|
||||||
organizations_url: 'https://api.github.com/users/crazy-max/orgs',
|
|
||||||
received_events_url: 'https://api.github.com/users/crazy-max/received_events',
|
|
||||||
repos_url: 'https://api.github.com/users/crazy-max/repos',
|
|
||||||
site_admin: false,
|
|
||||||
starred_url: 'https://api.github.com/users/crazy-max/starred{/owner}{/repo}',
|
|
||||||
subscriptions_url: 'https://api.github.com/users/crazy-max/subscriptions',
|
|
||||||
type: 'User',
|
|
||||||
url: 'https://api.github.com/users/crazy-max'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
export const getOctokit = jest.fn(() => ({
|
|
||||||
rest: {
|
|
||||||
repos: {
|
|
||||||
getCommit: jest.fn(() =>
|
|
||||||
Promise.resolve({
|
|
||||||
data: {
|
|
||||||
commit: {
|
|
||||||
committer: {
|
|
||||||
date: '2024-11-13T13:42:28Z'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}));
|
|
@ -1,141 +1,173 @@
|
|||||||
import {afterEach, beforeEach, describe, expect, test, it, jest} from '@jest/globals';
|
|
||||||
import * as dotenv from 'dotenv';
|
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import {Context} from '@actions/github/lib/context';
|
|
||||||
import {Git} from '@docker/actions-toolkit/lib/git';
|
|
||||||
import {GitHub} from '@docker/actions-toolkit/lib/github';
|
|
||||||
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
|
|
||||||
|
|
||||||
import {ContextSource, getContext, getInputs, Inputs} from '../src/context';
|
import * as context from '../src/context';
|
||||||
|
|
||||||
const toolkit = new Toolkit({githubToken: 'fake-github-token'});
|
jest.spyOn(context, 'tmpDir').mockImplementation((): string => {
|
||||||
|
const tmpDir = path.join('/tmp/.ghaction-docker-meta-jest').split(path.sep).join(path.posix.sep);
|
||||||
beforeEach(() => {
|
if (!fs.existsSync(tmpDir)) {
|
||||||
jest.clearAllMocks();
|
fs.mkdirSync(tmpDir, {recursive: true});
|
||||||
jest.spyOn(GitHub, 'context', 'get').mockImplementation((): Context => {
|
|
||||||
return new Context();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('getInputs', () => {
|
|
||||||
beforeEach(() => {
|
|
||||||
process.env = Object.keys(process.env).reduce((object, key) => {
|
|
||||||
if (!key.startsWith('INPUT_')) {
|
|
||||||
object[key] = process.env[key];
|
|
||||||
}
|
}
|
||||||
return object;
|
return tmpDir;
|
||||||
}, {});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// prettier-ignore
|
describe('getInputList', () => {
|
||||||
test.each([
|
it('single line correctly', async () => {
|
||||||
[
|
await setInput('foo', 'bar');
|
||||||
0,
|
const res = await context.getInputList('foo');
|
||||||
new Map<string, string>([
|
console.log(res);
|
||||||
['images', 'moby/buildkit\nghcr.io/moby/mbuildkit'],
|
expect(res).toEqual(['bar']);
|
||||||
]),
|
|
||||||
{
|
|
||||||
context: ContextSource.workflow,
|
|
||||||
bakeTarget: 'docker-metadata-action',
|
|
||||||
flavor: [],
|
|
||||||
githubToken: '',
|
|
||||||
images: ['moby/buildkit', 'ghcr.io/moby/mbuildkit'],
|
|
||||||
labels: [],
|
|
||||||
annotations: [],
|
|
||||||
sepLabels: '\n',
|
|
||||||
sepTags: '\n',
|
|
||||||
sepAnnotations: '\n',
|
|
||||||
tags: [],
|
|
||||||
} as Inputs
|
|
||||||
],
|
|
||||||
[
|
|
||||||
1,
|
|
||||||
new Map<string, string>([
|
|
||||||
['bake-target', 'metadata'],
|
|
||||||
['images', 'moby/buildkit'],
|
|
||||||
['sep-labels', ','],
|
|
||||||
['sep-tags', ','],
|
|
||||||
['sep-annotations', ',']
|
|
||||||
]),
|
|
||||||
{
|
|
||||||
context: ContextSource.workflow,
|
|
||||||
bakeTarget: 'metadata',
|
|
||||||
flavor: [],
|
|
||||||
githubToken: '',
|
|
||||||
images: ['moby/buildkit'],
|
|
||||||
labels: [],
|
|
||||||
annotations: [],
|
|
||||||
sepLabels: ',',
|
|
||||||
sepTags: ',',
|
|
||||||
sepAnnotations: ',',
|
|
||||||
tags: [],
|
|
||||||
} as Inputs
|
|
||||||
],
|
|
||||||
[
|
|
||||||
2,
|
|
||||||
new Map<string, string>([
|
|
||||||
['images', 'moby/buildkit\n#comment\nghcr.io/moby/mbuildkit'],
|
|
||||||
]),
|
|
||||||
{
|
|
||||||
context: ContextSource.workflow,
|
|
||||||
bakeTarget: 'docker-metadata-action',
|
|
||||||
flavor: [],
|
|
||||||
githubToken: '',
|
|
||||||
images: ['moby/buildkit', 'ghcr.io/moby/mbuildkit'],
|
|
||||||
labels: [],
|
|
||||||
annotations: [],
|
|
||||||
sepLabels: '\n',
|
|
||||||
sepTags: '\n',
|
|
||||||
sepAnnotations: '\n',
|
|
||||||
tags: [],
|
|
||||||
} as Inputs
|
|
||||||
],
|
|
||||||
])(
|
|
||||||
'[%d] given %p as inputs, returns %p',
|
|
||||||
async (num: number, inputs: Map<string, string>, expected: Inputs) => {
|
|
||||||
inputs.forEach((value: string, name: string) => {
|
|
||||||
setInput(name, value);
|
|
||||||
});
|
});
|
||||||
expect(await getInputs()).toEqual(expected);
|
|
||||||
}
|
it('multiline correctly', async () => {
|
||||||
|
setInput('foo', 'bar\nbaz');
|
||||||
|
const res = await context.getInputList('foo');
|
||||||
|
console.log(res);
|
||||||
|
expect(res).toEqual(['bar', 'baz']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('empty lines correctly', async () => {
|
||||||
|
setInput('foo', 'bar\n\nbaz');
|
||||||
|
const res = await context.getInputList('foo');
|
||||||
|
console.log(res);
|
||||||
|
expect(res).toEqual(['bar', 'baz']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('comma correctly', async () => {
|
||||||
|
setInput('foo', 'bar,baz');
|
||||||
|
const res = await context.getInputList('foo');
|
||||||
|
console.log(res);
|
||||||
|
expect(res).toEqual(['bar', 'baz']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('empty result correctly', async () => {
|
||||||
|
setInput('foo', 'bar,baz,');
|
||||||
|
const res = await context.getInputList('foo');
|
||||||
|
console.log(res);
|
||||||
|
expect(res).toEqual(['bar', 'baz']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('different new lines correctly', async () => {
|
||||||
|
setInput('foo', 'bar\r\nbaz');
|
||||||
|
const res = await context.getInputList('foo');
|
||||||
|
console.log(res);
|
||||||
|
expect(res).toEqual(['bar', 'baz']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('different new lines and comma correctly', async () => {
|
||||||
|
setInput('foo', 'bar\r\nbaz,bat');
|
||||||
|
const res = await context.getInputList('foo');
|
||||||
|
console.log(res);
|
||||||
|
expect(res).toEqual(['bar', 'baz', 'bat']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('multiline and ignoring comma correctly', async () => {
|
||||||
|
setInput('cache-from', 'user/app:cache\ntype=local,src=path/to/dir');
|
||||||
|
const res = await context.getInputList('cache-from', true);
|
||||||
|
console.log(res);
|
||||||
|
expect(res).toEqual(['user/app:cache', 'type=local,src=path/to/dir']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('different new lines and ignoring comma correctly', async () => {
|
||||||
|
setInput('cache-from', 'user/app:cache\r\ntype=local,src=path/to/dir');
|
||||||
|
const res = await context.getInputList('cache-from', true);
|
||||||
|
console.log(res);
|
||||||
|
expect(res).toEqual(['user/app:cache', 'type=local,src=path/to/dir']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('multiline values', async () => {
|
||||||
|
setInput(
|
||||||
|
'secrets',
|
||||||
|
`GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789
|
||||||
|
"MYSECRET=aaaaaaaa
|
||||||
|
bbbbbbb
|
||||||
|
ccccccccc"
|
||||||
|
FOO=bar`
|
||||||
);
|
);
|
||||||
|
const res = await context.getInputList('secrets', true);
|
||||||
|
console.log(res);
|
||||||
|
expect(res).toEqual([
|
||||||
|
'GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789',
|
||||||
|
`MYSECRET=aaaaaaaa
|
||||||
|
bbbbbbb
|
||||||
|
ccccccccc`,
|
||||||
|
'FOO=bar'
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('getContext', () => {
|
it('multiline values with empty lines', async () => {
|
||||||
const originalEnv = process.env;
|
setInput(
|
||||||
beforeEach(() => {
|
'secrets',
|
||||||
jest.resetModules();
|
`GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789
|
||||||
process.env = {
|
"MYSECRET=aaaaaaaa
|
||||||
...originalEnv,
|
bbbbbbb
|
||||||
...dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures/event_create_branch.env')))
|
ccccccccc"
|
||||||
};
|
FOO=bar
|
||||||
});
|
"EMPTYLINE=aaaa
|
||||||
afterEach(() => {
|
|
||||||
process.env = originalEnv;
|
bbbb
|
||||||
|
ccc"`
|
||||||
|
);
|
||||||
|
const res = await context.getInputList('secrets', true);
|
||||||
|
console.log(res);
|
||||||
|
expect(res).toEqual([
|
||||||
|
'GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789',
|
||||||
|
`MYSECRET=aaaaaaaa
|
||||||
|
bbbbbbb
|
||||||
|
ccccccccc`,
|
||||||
|
'FOO=bar',
|
||||||
|
`EMPTYLINE=aaaa
|
||||||
|
|
||||||
|
bbbb
|
||||||
|
ccc`
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('workflow', async () => {
|
it('multiline values without quotes', async () => {
|
||||||
const context = await getContext(ContextSource.workflow, toolkit);
|
setInput(
|
||||||
expect(context.ref).toEqual('refs/heads/dev');
|
'secrets',
|
||||||
expect(context.sha).toEqual('5f3331d7f7044c18ca9f12c77d961c4d7cf3276a');
|
`GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789
|
||||||
expect(context.commitDate).toEqual(new Date('2024-11-13T13:42:28.000Z'));
|
MYSECRET=aaaaaaaa
|
||||||
|
bbbbbbb
|
||||||
|
ccccccccc
|
||||||
|
FOO=bar`
|
||||||
|
);
|
||||||
|
const res = await context.getInputList('secrets', true);
|
||||||
|
console.log(res);
|
||||||
|
expect(res).toEqual(['GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789', 'MYSECRET=aaaaaaaa', 'bbbbbbb', 'ccccccccc', 'FOO=bar']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('git', async () => {
|
it('multiline values escape quotes', async () => {
|
||||||
jest.spyOn(Git, 'context').mockImplementation((): Promise<Context> => {
|
setInput(
|
||||||
return Promise.resolve({
|
'secrets',
|
||||||
ref: 'refs/heads/git-test',
|
`GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789
|
||||||
sha: 'git-test-sha'
|
"MYSECRET=aaaaaaaa
|
||||||
} as Context);
|
bbbb""bbb
|
||||||
|
ccccccccc"
|
||||||
|
FOO=bar`
|
||||||
|
);
|
||||||
|
const res = await context.getInputList('secrets', true);
|
||||||
|
console.log(res);
|
||||||
|
expect(res).toEqual([
|
||||||
|
'GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789',
|
||||||
|
`MYSECRET=aaaaaaaa
|
||||||
|
bbbb\"bbb
|
||||||
|
ccccccccc`,
|
||||||
|
'FOO=bar'
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
jest.spyOn(Git, 'commitDate').mockImplementation(async (): Promise<Date> => {
|
|
||||||
return new Date('2023-01-01T13:42:28.000Z');
|
|
||||||
});
|
});
|
||||||
const context = await getContext(ContextSource.git, toolkit);
|
|
||||||
expect(context.ref).toEqual('refs/heads/git-test');
|
describe('asyncForEach', () => {
|
||||||
expect(context.sha).toEqual('git-test-sha');
|
it('executes async tasks sequentially', async () => {
|
||||||
expect(context.commitDate).toEqual(new Date('2023-01-01T13:42:28.000Z'));
|
const testValues = [1, 2, 3, 4, 5];
|
||||||
|
const results: number[] = [];
|
||||||
|
|
||||||
|
await context.asyncForEach(testValues, async value => {
|
||||||
|
results.push(value);
|
||||||
|
});
|
||||||
|
|
||||||
|
expect(results).toEqual(testValues);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_49ba9b4e-1733-447c-b700-1cea19f95b82
|
|
||||||
GITHUB_EVENT_NAME=create
|
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_create_branch.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_49ba9b4e-1733-447c-b700-1cea19f95b82
|
|
||||||
GITHUB_REF=refs/heads/dev
|
|
||||||
GITHUB_REF_NAME=dev
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=branch
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188731929
|
|
||||||
GITHUB_RUN_NUMBER=14
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=5f3331d7f7044c18ca9f12c77d961c4d7cf3276a
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_49ba9b4e-1733-447c-b700-1cea19f95b82
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,145 +0,0 @@
|
|||||||
{
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"master_branch": "master",
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"pusher_type": "user",
|
|
||||||
"ref": "dev",
|
|
||||||
"ref_type": "branch",
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 6,
|
|
||||||
"open_issues_count": 6,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": "2022-04-19T09:24:14Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_06751acb-da10-4e54-916a-60749556fc8b
|
|
||||||
GITHUB_EVENT_NAME=create
|
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_create_tag.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_06751acb-da10-4e54-916a-60749556fc8b
|
|
||||||
GITHUB_REF=refs/tags/v2.1.8-beta.67
|
|
||||||
GITHUB_REF_NAME=v2.1.8-beta.67
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188815957
|
|
||||||
GITHUB_RUN_NUMBER=22
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_06751acb-da10-4e54-916a-60749556fc8b
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,145 +0,0 @@
|
|||||||
{
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"master_branch": "master",
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"pusher_type": "user",
|
|
||||||
"ref": "v2.1.8-beta.67",
|
|
||||||
"ref_type": "tag",
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 6,
|
|
||||||
"open_issues_count": 6,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": "2022-04-19T09:41:03Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_5f8f9da1-1c58-4a8e-bef4-dba436a05edf
|
|
||||||
GITHUB_EVENT_NAME=discussion
|
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_discussion_created.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_5f8f9da1-1c58-4a8e-bef4-dba436a05edf
|
|
||||||
GITHUB_REF=refs/heads/master
|
|
||||||
GITHUB_REF_NAME=master
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=branch
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188642055
|
|
||||||
GITHUB_RUN_NUMBER=7
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=266574110acf203503badf966df2ea24b5d732d7
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_5f8f9da1-1c58-4a8e-bef4-dba436a05edf
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,205 +0,0 @@
|
|||||||
{
|
|
||||||
"action": "created",
|
|
||||||
"discussion": {
|
|
||||||
"active_lock_reason": null,
|
|
||||||
"answer_chosen_at": null,
|
|
||||||
"answer_chosen_by": null,
|
|
||||||
"answer_html_url": null,
|
|
||||||
"author_association": "COLLABORATOR",
|
|
||||||
"body": "bar",
|
|
||||||
"category": {
|
|
||||||
"created_at": "2022-04-19T11:05:12.000+02:00",
|
|
||||||
"description": "Chat about anything and everything here",
|
|
||||||
"emoji": ":speech_balloon:",
|
|
||||||
"id": 37396924,
|
|
||||||
"is_answerable": false,
|
|
||||||
"name": "General",
|
|
||||||
"node_id": "DIC_kwDOEQjNNc4COqG8",
|
|
||||||
"repository_id": 285789493,
|
|
||||||
"slug": "general",
|
|
||||||
"updated_at": "2022-04-19T11:05:12.000+02:00"
|
|
||||||
},
|
|
||||||
"comments": 0,
|
|
||||||
"created_at": "2022-04-19T09:07:32Z",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action/discussions/13",
|
|
||||||
"id": 4019118,
|
|
||||||
"locked": false,
|
|
||||||
"node_id": "D_kwDOEQjNNc4APVOu",
|
|
||||||
"number": 13,
|
|
||||||
"reactions": {
|
|
||||||
"+1": 0,
|
|
||||||
"-1": 0,
|
|
||||||
"confused": 0,
|
|
||||||
"eyes": 0,
|
|
||||||
"heart": 0,
|
|
||||||
"hooray": 0,
|
|
||||||
"laugh": 0,
|
|
||||||
"rocket": 0,
|
|
||||||
"total_count": 0,
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action/discussions/13/reactions"
|
|
||||||
},
|
|
||||||
"repository_url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"state": "open",
|
|
||||||
"timeline_url": "https://api.github.com/repos/docker/test-docker-action/discussions/13/timeline",
|
|
||||||
"title": "foo",
|
|
||||||
"updated_at": "2022-04-19T09:07:32Z",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 4,
|
|
||||||
"open_issues_count": 4,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": "2022-04-19T09:04:50Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_940c04a5-537a-4401-afe6-1f044e1d3836
|
|
||||||
GITHUB_EVENT_NAME=discussion
|
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_discussion_pinned.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_940c04a5-537a-4401-afe6-1f044e1d3836
|
|
||||||
GITHUB_REF=refs/heads/master
|
|
||||||
GITHUB_REF_NAME=master
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=branch
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188642074
|
|
||||||
GITHUB_RUN_NUMBER=8
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=266574110acf203503badf966df2ea24b5d732d7
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_940c04a5-537a-4401-afe6-1f044e1d3836
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,205 +0,0 @@
|
|||||||
{
|
|
||||||
"action": "pinned",
|
|
||||||
"discussion": {
|
|
||||||
"active_lock_reason": null,
|
|
||||||
"answer_chosen_at": null,
|
|
||||||
"answer_chosen_by": null,
|
|
||||||
"answer_html_url": null,
|
|
||||||
"author_association": "COLLABORATOR",
|
|
||||||
"body": "bar",
|
|
||||||
"category": {
|
|
||||||
"created_at": "2022-04-19T11:05:12.000+02:00",
|
|
||||||
"description": "Chat about anything and everything here",
|
|
||||||
"emoji": ":speech_balloon:",
|
|
||||||
"id": 37396924,
|
|
||||||
"is_answerable": false,
|
|
||||||
"name": "General",
|
|
||||||
"node_id": "DIC_kwDOEQjNNc4COqG8",
|
|
||||||
"repository_id": 285789493,
|
|
||||||
"slug": "general",
|
|
||||||
"updated_at": "2022-04-19T11:05:12.000+02:00"
|
|
||||||
},
|
|
||||||
"comments": 0,
|
|
||||||
"created_at": "2022-04-19T09:07:32Z",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action/discussions/13",
|
|
||||||
"id": 4019118,
|
|
||||||
"locked": false,
|
|
||||||
"node_id": "D_kwDOEQjNNc4APVOu",
|
|
||||||
"number": 13,
|
|
||||||
"reactions": {
|
|
||||||
"+1": 0,
|
|
||||||
"-1": 0,
|
|
||||||
"confused": 0,
|
|
||||||
"eyes": 0,
|
|
||||||
"heart": 0,
|
|
||||||
"hooray": 0,
|
|
||||||
"laugh": 0,
|
|
||||||
"rocket": 0,
|
|
||||||
"total_count": 0,
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action/discussions/13/reactions"
|
|
||||||
},
|
|
||||||
"repository_url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"state": "open",
|
|
||||||
"timeline_url": "https://api.github.com/repos/docker/test-docker-action/discussions/13/timeline",
|
|
||||||
"title": "foo",
|
|
||||||
"updated_at": "2022-04-19T09:07:32Z",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 4,
|
|
||||||
"open_issues_count": 4,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": "2022-04-19T09:04:50Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_b598b668-2cad-465a-b526-d21912b7d2b2
|
|
||||||
GITHUB_EVENT_NAME=issues
|
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_issue_opened.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_b598b668-2cad-465a-b526-d21912b7d2b2
|
|
||||||
GITHUB_REF=refs/heads/master
|
|
||||||
GITHUB_REF_NAME=master
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=branch
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188657159
|
|
||||||
GITHUB_RUN_NUMBER=9
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=266574110acf203503badf966df2ea24b5d732d7
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_b598b668-2cad-465a-b526-d21912b7d2b2
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,200 +0,0 @@
|
|||||||
{
|
|
||||||
"action": "opened",
|
|
||||||
"issue": {
|
|
||||||
"active_lock_reason": null,
|
|
||||||
"assignee": null,
|
|
||||||
"assignees": [],
|
|
||||||
"author_association": "COLLABORATOR",
|
|
||||||
"body": "bar",
|
|
||||||
"closed_at": null,
|
|
||||||
"comments": 0,
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/issues/14/comments",
|
|
||||||
"created_at": "2022-04-19T09:10:26Z",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/issues/14/events",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action/issues/14",
|
|
||||||
"id": 1208034626,
|
|
||||||
"labels": [],
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/issues/14/labels{/name}",
|
|
||||||
"locked": false,
|
|
||||||
"milestone": null,
|
|
||||||
"node_id": "I_kwDOEQjNNc5IASVC",
|
|
||||||
"number": 14,
|
|
||||||
"performed_via_github_app": null,
|
|
||||||
"reactions": {
|
|
||||||
"+1": 0,
|
|
||||||
"-1": 0,
|
|
||||||
"confused": 0,
|
|
||||||
"eyes": 0,
|
|
||||||
"heart": 0,
|
|
||||||
"hooray": 0,
|
|
||||||
"laugh": 0,
|
|
||||||
"rocket": 0,
|
|
||||||
"total_count": 0,
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action/issues/14/reactions"
|
|
||||||
},
|
|
||||||
"repository_url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"state": "open",
|
|
||||||
"timeline_url": "https://api.github.com/repos/docker/test-docker-action/issues/14/timeline",
|
|
||||||
"title": "foo",
|
|
||||||
"updated_at": "2022-04-19T09:10:26Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action/issues/14",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 5,
|
|
||||||
"open_issues_count": 5,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": "2022-04-19T09:04:50Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,30 +1,23 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
GITHUB_ACTION=crazy-maxghaction-dump-context
|
||||||
GITHUB_ACTIONS=true
|
GITHUB_ACTIONS=true
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
GITHUB_ACTOR=crazy-max
|
||||||
GITHUB_API_URL=https://api.github.com
|
GITHUB_API_URL=https://api.github.com
|
||||||
GITHUB_BASE_REF=master
|
GITHUB_BASE_REF=master
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_ca953e95-2f41-4926-bc52-a1c8d90e94c1
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_e00a951d-2585-4fac-b085-459d80e69a2f
|
||||||
GITHUB_EVENT_NAME=pull_request
|
GITHUB_EVENT_NAME=pull_request
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_pull_request.json
|
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
GITHUB_HEAD_REF=test-pr
|
GITHUB_HEAD_REF=pr
|
||||||
GITHUB_JOB=test
|
GITHUB_JOB=event
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_ca953e95-2f41-4926-bc52-a1c8d90e94c1
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_e00a951d-2585-4fac-b085-459d80e69a2f
|
||||||
GITHUB_REF=refs/pull/15/merge
|
GITHUB_REF=refs/pull/2/merge
|
||||||
GITHUB_REF_NAME=15/merge
|
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
||||||
GITHUB_REF_PROTECTED=false
|
GITHUB_REPOSITORY_OWNER=crazy-max
|
||||||
GITHUB_REF_TYPE=branch
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ATTEMPT=1
|
GITHUB_RUN_ID=325972677
|
||||||
GITHUB_RUN_ID=2188688025
|
GITHUB_RUN_NUMBER=7
|
||||||
GITHUB_RUN_NUMBER=11
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=a9c8c5828b91be19d9728548b24759e352367ef1
|
GITHUB_SHA=1e9249f05bfc090e0688b8fb9c1b347586add504
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_ca953e95-2f41-4926-bc52-a1c8d90e94c1
|
GITHUB_WORKFLOW=event
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@ -1,504 +0,0 @@
|
|||||||
{
|
|
||||||
"action": "opened",
|
|
||||||
"number": 15,
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"pull_request": {
|
|
||||||
"_links": {
|
|
||||||
"comments": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/issues/15/comments"
|
|
||||||
},
|
|
||||||
"commits": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/15/commits"
|
|
||||||
},
|
|
||||||
"html": {
|
|
||||||
"href": "https://github.com/docker/test-docker-action/pull/15"
|
|
||||||
},
|
|
||||||
"issue": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/issues/15"
|
|
||||||
},
|
|
||||||
"review_comment": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/comments{/number}"
|
|
||||||
},
|
|
||||||
"review_comments": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/15/comments"
|
|
||||||
},
|
|
||||||
"self": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/15"
|
|
||||||
},
|
|
||||||
"statuses": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/statuses/3370e228f2209994d57af4427fe64e71bb79ac96"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"active_lock_reason": null,
|
|
||||||
"additions": 1,
|
|
||||||
"assignee": null,
|
|
||||||
"assignees": [],
|
|
||||||
"author_association": "COLLABORATOR",
|
|
||||||
"auto_merge": null,
|
|
||||||
"base": {
|
|
||||||
"label": "docker:master",
|
|
||||||
"ref": "master",
|
|
||||||
"repo": {
|
|
||||||
"allow_auto_merge": false,
|
|
||||||
"allow_forking": true,
|
|
||||||
"allow_merge_commit": true,
|
|
||||||
"allow_rebase_merge": true,
|
|
||||||
"allow_squash_merge": true,
|
|
||||||
"allow_update_branch": false,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"delete_branch_on_merge": false,
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 6,
|
|
||||||
"open_issues_count": 6,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": "2022-04-19T09:04:50Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sha": "266574110acf203503badf966df2ea24b5d732d7",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": null,
|
|
||||||
"changed_files": 1,
|
|
||||||
"closed_at": null,
|
|
||||||
"comments": 0,
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/issues/15/comments",
|
|
||||||
"commits": 1,
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/pulls/15/commits",
|
|
||||||
"created_at": "2022-04-19T09:16:17Z",
|
|
||||||
"deletions": 1,
|
|
||||||
"diff_url": "https://github.com/docker/test-docker-action/pull/15.diff",
|
|
||||||
"draft": false,
|
|
||||||
"head": {
|
|
||||||
"label": "crazy-max:test-pr",
|
|
||||||
"ref": "test-pr",
|
|
||||||
"repo": {
|
|
||||||
"allow_auto_merge": false,
|
|
||||||
"allow_forking": true,
|
|
||||||
"allow_merge_commit": true,
|
|
||||||
"allow_rebase_merge": true,
|
|
||||||
"allow_squash_merge": true,
|
|
||||||
"allow_update_branch": false,
|
|
||||||
"archive_url": "https://api.github.com/repos/crazy-max/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/crazy-max/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/crazy-max/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/crazy-max/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/crazy-max/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/crazy-max/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/crazy-max/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/crazy-max/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/crazy-max/test-docker-action/contributors",
|
|
||||||
"created_at": "2021-07-11T17:34:22Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"delete_branch_on_merge": false,
|
|
||||||
"deployments_url": "https://api.github.com/repos/crazy-max/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/crazy-max/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/crazy-max/test-docker-action/events",
|
|
||||||
"fork": true,
|
|
||||||
"forks": 0,
|
|
||||||
"forks_count": 0,
|
|
||||||
"forks_url": "https://api.github.com/repos/crazy-max/test-docker-action/forks",
|
|
||||||
"full_name": "crazy-max/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/crazy-max/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": false,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": false,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/crazy-max/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/crazy-max/test-docker-action",
|
|
||||||
"id": 385013169,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/crazy-max/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/crazy-max/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/crazy-max/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"merges_url": "https://api.github.com/repos/crazy-max/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/crazy-max/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkzODUwMTMxNjk=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/crazy-max/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 0,
|
|
||||||
"open_issues_count": 0,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": "2022-04-19T09:16:07Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/crazy-max/test-docker-action/releases{/id}",
|
|
||||||
"size": 151,
|
|
||||||
"ssh_url": "git@github.com:crazy-max/test-docker-action.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/crazy-max/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/crazy-max/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/crazy-max/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/crazy-max/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:13:10Z",
|
|
||||||
"url": "https://api.github.com/repos/crazy-max/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sha": "3370e228f2209994d57af4427fe64e71bb79ac96",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action/pull/15",
|
|
||||||
"id": 912840343,
|
|
||||||
"issue_url": "https://api.github.com/repos/docker/test-docker-action/issues/15",
|
|
||||||
"labels": [],
|
|
||||||
"locked": false,
|
|
||||||
"maintainer_can_modify": true,
|
|
||||||
"merge_commit_sha": null,
|
|
||||||
"mergeable": null,
|
|
||||||
"mergeable_state": "unknown",
|
|
||||||
"merged": false,
|
|
||||||
"merged_at": null,
|
|
||||||
"merged_by": null,
|
|
||||||
"milestone": null,
|
|
||||||
"node_id": "PR_kwDOEQjNNc42aNaX",
|
|
||||||
"number": 15,
|
|
||||||
"patch_url": "https://github.com/docker/test-docker-action/pull/15.patch",
|
|
||||||
"rebaseable": null,
|
|
||||||
"requested_reviewers": [],
|
|
||||||
"requested_teams": [],
|
|
||||||
"review_comment_url": "https://api.github.com/repos/docker/test-docker-action/pulls/comments{/number}",
|
|
||||||
"review_comments": 0,
|
|
||||||
"review_comments_url": "https://api.github.com/repos/docker/test-docker-action/pulls/15/comments",
|
|
||||||
"state": "open",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/3370e228f2209994d57af4427fe64e71bb79ac96",
|
|
||||||
"title": "small change",
|
|
||||||
"updated_at": "2022-04-19T09:16:17Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action/pulls/15",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 6,
|
|
||||||
"open_issues_count": 6,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": "2022-04-19T09:04:50Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=master
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_2f69f48f-fb93-475f-a6a5-91dc7866f518
|
|
||||||
GITHUB_EVENT_NAME=pull_request_target
|
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_pull_request_target.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=test-pr
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_2f69f48f-fb93-475f-a6a5-91dc7866f518
|
|
||||||
GITHUB_REF=refs/heads/master
|
|
||||||
GITHUB_REF_NAME=master
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=branch
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188688000
|
|
||||||
GITHUB_RUN_NUMBER=10
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=266574110acf203503badf966df2ea24b5d732d7
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_2f69f48f-fb93-475f-a6a5-91dc7866f518
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,504 +0,0 @@
|
|||||||
{
|
|
||||||
"action": "opened",
|
|
||||||
"number": 15,
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"pull_request": {
|
|
||||||
"_links": {
|
|
||||||
"comments": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/issues/15/comments"
|
|
||||||
},
|
|
||||||
"commits": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/15/commits"
|
|
||||||
},
|
|
||||||
"html": {
|
|
||||||
"href": "https://github.com/docker/test-docker-action/pull/15"
|
|
||||||
},
|
|
||||||
"issue": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/issues/15"
|
|
||||||
},
|
|
||||||
"review_comment": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/comments{/number}"
|
|
||||||
},
|
|
||||||
"review_comments": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/15/comments"
|
|
||||||
},
|
|
||||||
"self": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/15"
|
|
||||||
},
|
|
||||||
"statuses": {
|
|
||||||
"href": "https://api.github.com/repos/docker/test-docker-action/statuses/3370e228f2209994d57af4427fe64e71bb79ac96"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"active_lock_reason": null,
|
|
||||||
"additions": 1,
|
|
||||||
"assignee": null,
|
|
||||||
"assignees": [],
|
|
||||||
"author_association": "COLLABORATOR",
|
|
||||||
"auto_merge": null,
|
|
||||||
"base": {
|
|
||||||
"label": "docker:master",
|
|
||||||
"ref": "master",
|
|
||||||
"repo": {
|
|
||||||
"allow_auto_merge": false,
|
|
||||||
"allow_forking": true,
|
|
||||||
"allow_merge_commit": true,
|
|
||||||
"allow_rebase_merge": true,
|
|
||||||
"allow_squash_merge": true,
|
|
||||||
"allow_update_branch": false,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"delete_branch_on_merge": false,
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 6,
|
|
||||||
"open_issues_count": 6,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": "2022-04-19T09:04:50Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sha": "266574110acf203503badf966df2ea24b5d732d7",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": null,
|
|
||||||
"changed_files": 1,
|
|
||||||
"closed_at": null,
|
|
||||||
"comments": 0,
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/issues/15/comments",
|
|
||||||
"commits": 1,
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/pulls/15/commits",
|
|
||||||
"created_at": "2022-04-19T09:16:17Z",
|
|
||||||
"deletions": 1,
|
|
||||||
"diff_url": "https://github.com/docker/test-docker-action/pull/15.diff",
|
|
||||||
"draft": false,
|
|
||||||
"head": {
|
|
||||||
"label": "crazy-max:test-pr",
|
|
||||||
"ref": "test-pr",
|
|
||||||
"repo": {
|
|
||||||
"allow_auto_merge": false,
|
|
||||||
"allow_forking": true,
|
|
||||||
"allow_merge_commit": true,
|
|
||||||
"allow_rebase_merge": true,
|
|
||||||
"allow_squash_merge": true,
|
|
||||||
"allow_update_branch": false,
|
|
||||||
"archive_url": "https://api.github.com/repos/crazy-max/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/crazy-max/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/crazy-max/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/crazy-max/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/crazy-max/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/crazy-max/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/crazy-max/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/crazy-max/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/crazy-max/test-docker-action/contributors",
|
|
||||||
"created_at": "2021-07-11T17:34:22Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"delete_branch_on_merge": false,
|
|
||||||
"deployments_url": "https://api.github.com/repos/crazy-max/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/crazy-max/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/crazy-max/test-docker-action/events",
|
|
||||||
"fork": true,
|
|
||||||
"forks": 0,
|
|
||||||
"forks_count": 0,
|
|
||||||
"forks_url": "https://api.github.com/repos/crazy-max/test-docker-action/forks",
|
|
||||||
"full_name": "crazy-max/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/crazy-max/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": false,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": false,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/crazy-max/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/crazy-max/test-docker-action",
|
|
||||||
"id": 385013169,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/crazy-max/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/crazy-max/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/crazy-max/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"merges_url": "https://api.github.com/repos/crazy-max/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/crazy-max/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkzODUwMTMxNjk=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/crazy-max/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 0,
|
|
||||||
"open_issues_count": 0,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": "2022-04-19T09:16:07Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/crazy-max/test-docker-action/releases{/id}",
|
|
||||||
"size": 151,
|
|
||||||
"ssh_url": "git@github.com:crazy-max/test-docker-action.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/crazy-max/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/crazy-max/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/crazy-max/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/crazy-max/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:13:10Z",
|
|
||||||
"url": "https://api.github.com/repos/crazy-max/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sha": "3370e228f2209994d57af4427fe64e71bb79ac96",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action/pull/15",
|
|
||||||
"id": 912840343,
|
|
||||||
"issue_url": "https://api.github.com/repos/docker/test-docker-action/issues/15",
|
|
||||||
"labels": [],
|
|
||||||
"locked": false,
|
|
||||||
"maintainer_can_modify": true,
|
|
||||||
"merge_commit_sha": null,
|
|
||||||
"mergeable": null,
|
|
||||||
"mergeable_state": "unknown",
|
|
||||||
"merged": false,
|
|
||||||
"merged_at": null,
|
|
||||||
"merged_by": null,
|
|
||||||
"milestone": null,
|
|
||||||
"node_id": "PR_kwDOEQjNNc42aNaX",
|
|
||||||
"number": 15,
|
|
||||||
"patch_url": "https://github.com/docker/test-docker-action/pull/15.patch",
|
|
||||||
"rebaseable": null,
|
|
||||||
"requested_reviewers": [],
|
|
||||||
"requested_teams": [],
|
|
||||||
"review_comment_url": "https://api.github.com/repos/docker/test-docker-action/pulls/comments{/number}",
|
|
||||||
"review_comments": 0,
|
|
||||||
"review_comments_url": "https://api.github.com/repos/docker/test-docker-action/pulls/15/comments",
|
|
||||||
"state": "open",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/3370e228f2209994d57af4427fe64e71bb79ac96",
|
|
||||||
"title": "small change",
|
|
||||||
"updated_at": "2022-04-19T09:16:17Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action/pulls/15",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 6,
|
|
||||||
"open_issues_count": 6,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": "2022-04-19T09:04:50Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
}
|
|
23
__tests__/fixtures/event_push.env
Normal file
23
__tests__/fixtures/event_push.env
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
GITHUB_ACTION=crazy-maxghaction-dump-context
|
||||||
|
GITHUB_ACTIONS=true
|
||||||
|
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
||||||
|
GITHUB_ACTOR=crazy-max
|
||||||
|
GITHUB_API_URL=https://api.github.com
|
||||||
|
GITHUB_BASE_REF=
|
||||||
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_89a016e8-e5b7-4039-a67e-c8da08f87a0c
|
||||||
|
GITHUB_EVENT_NAME=push
|
||||||
|
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
||||||
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
|
GITHUB_HEAD_REF=
|
||||||
|
GITHUB_JOB=event
|
||||||
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_89a016e8-e5b7-4039-a67e-c8da08f87a0c
|
||||||
|
GITHUB_REF=refs/heads/dev
|
||||||
|
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=crazy-max
|
||||||
|
GITHUB_RETENTION_DAYS=90
|
||||||
|
GITHUB_RUN_ID=325957516
|
||||||
|
GITHUB_RUN_NUMBER=1
|
||||||
|
GITHUB_SERVER_URL=https://github.com
|
||||||
|
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
||||||
|
GITHUB_WORKFLOW=event
|
||||||
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
23
__tests__/fixtures/event_push_defbranch.env
Normal file
23
__tests__/fixtures/event_push_defbranch.env
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
GITHUB_ACTION=crazy-maxghaction-dump-context
|
||||||
|
GITHUB_ACTIONS=true
|
||||||
|
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
||||||
|
GITHUB_ACTOR=crazy-max
|
||||||
|
GITHUB_API_URL=https://api.github.com
|
||||||
|
GITHUB_BASE_REF=
|
||||||
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_89a016e8-e5b7-4039-a67e-c8da08f87a0c
|
||||||
|
GITHUB_EVENT_NAME=push
|
||||||
|
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
||||||
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
|
GITHUB_HEAD_REF=
|
||||||
|
GITHUB_JOB=event
|
||||||
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_89a016e8-e5b7-4039-a67e-c8da08f87a0c
|
||||||
|
GITHUB_REF=refs/heads/master
|
||||||
|
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=crazy-max
|
||||||
|
GITHUB_RETENTION_DAYS=90
|
||||||
|
GITHUB_RUN_ID=325957516
|
||||||
|
GITHUB_RUN_NUMBER=1
|
||||||
|
GITHUB_SERVER_URL=https://github.com
|
||||||
|
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
||||||
|
GITHUB_WORKFLOW=event
|
||||||
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_dce158a5-37b3-4081-8414-32238d5cfa7b
|
|
||||||
GITHUB_EVENT_NAME=push
|
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_push_dev.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_dce158a5-37b3-4081-8414-32238d5cfa7b
|
|
||||||
GITHUB_REF=refs/heads/dev
|
|
||||||
GITHUB_REF_NAME=dev
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=branch
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188748038
|
|
||||||
GITHUB_RUN_NUMBER=15
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_dce158a5-37b3-4081-8414-32238d5cfa7b
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,195 +0,0 @@
|
|||||||
{
|
|
||||||
"after": "860c1904a1ce19322e91ac35af1ab07466440c37",
|
|
||||||
"base_ref": null,
|
|
||||||
"before": "5f3331d7f7044c18ca9f12c77d961c4d7cf3276a",
|
|
||||||
"commits": [
|
|
||||||
{
|
|
||||||
"author": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"committer": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"distinct": true,
|
|
||||||
"id": "860c1904a1ce19322e91ac35af1ab07466440c37",
|
|
||||||
"message": "hello dev",
|
|
||||||
"timestamp": "2022-04-19T11:27:24+02:00",
|
|
||||||
"tree_id": "d2c60af597e863787d2d27f569e30495b0b92820",
|
|
||||||
"url": "https://github.com/docker/test-docker-action/commit/860c1904a1ce19322e91ac35af1ab07466440c37"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"compare": "https://github.com/docker/test-docker-action/compare/5f3331d7f704...860c1904a1ce",
|
|
||||||
"created": false,
|
|
||||||
"deleted": false,
|
|
||||||
"forced": false,
|
|
||||||
"head_commit": {
|
|
||||||
"author": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"committer": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"distinct": true,
|
|
||||||
"id": "860c1904a1ce19322e91ac35af1ab07466440c37",
|
|
||||||
"message": "hello dev",
|
|
||||||
"timestamp": "2022-04-19T11:27:24+02:00",
|
|
||||||
"tree_id": "d2c60af597e863787d2d27f569e30495b0b92820",
|
|
||||||
"url": "https://github.com/docker/test-docker-action/commit/860c1904a1ce19322e91ac35af1ab07466440c37"
|
|
||||||
},
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"pusher": {
|
|
||||||
"email": "github@crazymax.dev",
|
|
||||||
"name": "crazy-max"
|
|
||||||
},
|
|
||||||
"ref": "refs/heads/dev",
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": 1596792180,
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"master_branch": "master",
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 6,
|
|
||||||
"open_issues_count": 6,
|
|
||||||
"organization": "docker",
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"email": "info@docker.com",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"name": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": 1650360446,
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers": 0,
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://github.com/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,30 +1,23 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
GITHUB_ACTION=crazy-maxghaction-dump-context
|
||||||
GITHUB_ACTIONS=true
|
GITHUB_ACTIONS=true
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
GITHUB_ACTOR=crazy-max
|
||||||
GITHUB_API_URL=https://api.github.com
|
GITHUB_API_URL=https://api.github.com
|
||||||
GITHUB_BASE_REF=
|
GITHUB_BASE_REF=
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_5d7d8f7f-4b47-4f4c-b32a-e7fa634790c9
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_89a016e8-e5b7-4039-a67e-c8da08f87a0c
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_push_invalidchars.json
|
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
GITHUB_HEAD_REF=
|
GITHUB_HEAD_REF=
|
||||||
GITHUB_JOB=test
|
GITHUB_JOB=event
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_5d7d8f7f-4b47-4f4c-b32a-e7fa634790c9
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_89a016e8-e5b7-4039-a67e-c8da08f87a0c
|
||||||
GITHUB_REF=refs/heads/my/feature#1245
|
GITHUB_REF="refs/heads/my/feature#1245"
|
||||||
GITHUB_REF_NAME=my/feature#1245
|
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
||||||
GITHUB_REF_PROTECTED=false
|
GITHUB_REPOSITORY_OWNER=crazy-max
|
||||||
GITHUB_REF_TYPE=branch
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ATTEMPT=1
|
GITHUB_RUN_ID=325957516
|
||||||
GITHUB_RUN_ID=2188792787
|
GITHUB_RUN_NUMBER=1
|
||||||
GITHUB_RUN_NUMBER=19
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=983315b5e8d46e46fc4c49869e85e7ee5fb289ba
|
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_5d7d8f7f-4b47-4f4c-b32a-e7fa634790c9
|
GITHUB_WORKFLOW=event
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@ -1,195 +0,0 @@
|
|||||||
{
|
|
||||||
"after": "983315b5e8d46e46fc4c49869e85e7ee5fb289ba",
|
|
||||||
"base_ref": null,
|
|
||||||
"before": "4af2cc040e1cee6ee91e2491f34e5787121eb902",
|
|
||||||
"commits": [
|
|
||||||
{
|
|
||||||
"author": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"committer": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"distinct": true,
|
|
||||||
"id": "983315b5e8d46e46fc4c49869e85e7ee5fb289ba",
|
|
||||||
"message": "feature 1245",
|
|
||||||
"timestamp": "2022-04-19T11:36:08+02:00",
|
|
||||||
"tree_id": "e9f7b0bf689a49a4792d518088710dadb52d7e9a",
|
|
||||||
"url": "https://github.com/docker/test-docker-action/commit/983315b5e8d46e46fc4c49869e85e7ee5fb289ba"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"compare": "https://github.com/docker/test-docker-action/compare/4af2cc040e1c...983315b5e8d4",
|
|
||||||
"created": false,
|
|
||||||
"deleted": false,
|
|
||||||
"forced": true,
|
|
||||||
"head_commit": {
|
|
||||||
"author": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"committer": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"distinct": true,
|
|
||||||
"id": "983315b5e8d46e46fc4c49869e85e7ee5fb289ba",
|
|
||||||
"message": "feature 1245",
|
|
||||||
"timestamp": "2022-04-19T11:36:08+02:00",
|
|
||||||
"tree_id": "e9f7b0bf689a49a4792d518088710dadb52d7e9a",
|
|
||||||
"url": "https://github.com/docker/test-docker-action/commit/983315b5e8d46e46fc4c49869e85e7ee5fb289ba"
|
|
||||||
},
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"pusher": {
|
|
||||||
"email": "github@crazymax.dev",
|
|
||||||
"name": "crazy-max"
|
|
||||||
},
|
|
||||||
"ref": "refs/heads/my/feature#1245",
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": 1596792180,
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"master_branch": "master",
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 6,
|
|
||||||
"open_issues_count": 6,
|
|
||||||
"organization": "docker",
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"email": "info@docker.com",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"name": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": 1650360972,
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers": 0,
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://github.com/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_f5600b76-1b08-404a-8e90-7f2cd620928b
|
|
||||||
GITHUB_EVENT_NAME=push
|
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_push_master.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_f5600b76-1b08-404a-8e90-7f2cd620928b
|
|
||||||
GITHUB_REF=refs/heads/master
|
|
||||||
GITHUB_REF_NAME=master
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=branch
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188627423
|
|
||||||
GITHUB_RUN_NUMBER=6
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=266574110acf203503badf966df2ea24b5d732d7
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_f5600b76-1b08-404a-8e90-7f2cd620928b
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,195 +0,0 @@
|
|||||||
{
|
|
||||||
"after": "266574110acf203503badf966df2ea24b5d732d7",
|
|
||||||
"base_ref": null,
|
|
||||||
"before": "ef1a8e2e6a91ffa6837f19f7743405b709363225",
|
|
||||||
"commits": [
|
|
||||||
{
|
|
||||||
"author": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"committer": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"distinct": true,
|
|
||||||
"id": "266574110acf203503badf966df2ea24b5d732d7",
|
|
||||||
"message": "more events",
|
|
||||||
"timestamp": "2022-04-19T11:04:39+02:00",
|
|
||||||
"tree_id": "03b667a843ece33c75ef5eb23ca5bc8fc3b876e4",
|
|
||||||
"url": "https://github.com/docker/test-docker-action/commit/266574110acf203503badf966df2ea24b5d732d7"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"compare": "https://github.com/docker/test-docker-action/compare/ef1a8e2e6a91...266574110acf",
|
|
||||||
"created": false,
|
|
||||||
"deleted": false,
|
|
||||||
"forced": false,
|
|
||||||
"head_commit": {
|
|
||||||
"author": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"committer": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"distinct": true,
|
|
||||||
"id": "266574110acf203503badf966df2ea24b5d732d7",
|
|
||||||
"message": "more events",
|
|
||||||
"timestamp": "2022-04-19T11:04:39+02:00",
|
|
||||||
"tree_id": "03b667a843ece33c75ef5eb23ca5bc8fc3b876e4",
|
|
||||||
"url": "https://github.com/docker/test-docker-action/commit/266574110acf203503badf966df2ea24b5d732d7"
|
|
||||||
},
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"pusher": {
|
|
||||||
"email": "github@crazymax.dev",
|
|
||||||
"name": "crazy-max"
|
|
||||||
},
|
|
||||||
"ref": "refs/heads/master",
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": 1596792180,
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": false,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": false,
|
|
||||||
"has_wiki": false,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"master_branch": "master",
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 4,
|
|
||||||
"open_issues_count": 4,
|
|
||||||
"organization": "docker",
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"email": "info@docker.com",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"name": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": 1650359090,
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers": 0,
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2021-12-21T21:49:29Z",
|
|
||||||
"url": "https://github.com/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
}
|
|
23
__tests__/fixtures/event_release.env
Normal file
23
__tests__/fixtures/event_release.env
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
GITHUB_ACTION=crazy-maxghaction-dump-context
|
||||||
|
GITHUB_ACTIONS=true
|
||||||
|
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
||||||
|
GITHUB_ACTOR=crazy-max
|
||||||
|
GITHUB_API_URL=https://api.github.com
|
||||||
|
GITHUB_BASE_REF=
|
||||||
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7c207886-8ce7-4ad2-9b7f-f59dae4e5cf3
|
||||||
|
GITHUB_EVENT_NAME=release
|
||||||
|
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
||||||
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
|
GITHUB_HEAD_REF=
|
||||||
|
GITHUB_JOB=event
|
||||||
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7c207886-8ce7-4ad2-9b7f-f59dae4e5cf3
|
||||||
|
GITHUB_REF=refs/tags/v1.1.1
|
||||||
|
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=crazy-max
|
||||||
|
GITHUB_RETENTION_DAYS=90
|
||||||
|
GITHUB_RUN_ID=325970352
|
||||||
|
GITHUB_RUN_NUMBER=5
|
||||||
|
GITHUB_SERVER_URL=https://github.com
|
||||||
|
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
||||||
|
GITHUB_WORKFLOW=event
|
||||||
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_82c844c7-54b3-4b5d-a1e1-4f9f2e936d4f
|
|
||||||
GITHUB_EVENT_NAME=release
|
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_release_created.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_82c844c7-54b3-4b5d-a1e1-4f9f2e936d4f
|
|
||||||
GITHUB_REF=refs/tags/v1.1.1
|
|
||||||
GITHUB_REF_NAME=v1.1.1
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188867972
|
|
||||||
GITHUB_RUN_NUMBER=26
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_82c844c7-54b3-4b5d-a1e1-4f9f2e936d4f
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,80 +0,0 @@
|
|||||||
{
|
|
||||||
"action": "created",
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"release": {
|
|
||||||
"assets": [],
|
|
||||||
"assets_url": "https://api.github.com/repos/docker/test-docker-action/releases/64718198/assets",
|
|
||||||
"author": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
},
|
|
||||||
"body": "foo",
|
|
||||||
"created_at": "2022-04-19T09:39:35Z",
|
|
||||||
"draft": false,
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action/releases/tag/v1.1.1",
|
|
||||||
"id": 64718198,
|
|
||||||
"name": "v1.1.1",
|
|
||||||
"node_id": "RE_kwDOEQjNNc4D24V2",
|
|
||||||
"prerelease": true,
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,30 +1,23 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
GITHUB_ACTION=crazy-maxghaction-dump-context
|
||||||
GITHUB_ACTIONS=true
|
GITHUB_ACTIONS=true
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
GITHUB_ACTOR=crazy-max
|
||||||
GITHUB_API_URL=https://api.github.com
|
GITHUB_API_URL=https://api.github.com
|
||||||
GITHUB_BASE_REF=
|
GITHUB_BASE_REF=
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_c8594ff3-bed7-4fb7-b495-c63872db99a2
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_5705dc72-e111-46f1-9421-a77a2daec643
|
||||||
GITHUB_EVENT_NAME=schedule
|
GITHUB_EVENT_NAME=schedule
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_schedule.json
|
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
GITHUB_HEAD_REF=
|
GITHUB_HEAD_REF=
|
||||||
GITHUB_JOB=test
|
GITHUB_JOB=event
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_c8594ff3-bed7-4fb7-b495-c63872db99a2
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_5705dc72-e111-46f1-9421-a77a2daec643
|
||||||
GITHUB_REF=refs/heads/master
|
GITHUB_REF=refs/heads/master
|
||||||
GITHUB_REF_NAME=master
|
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
||||||
GITHUB_REF_PROTECTED=false
|
GITHUB_REPOSITORY_OWNER=crazy-max
|
||||||
GITHUB_REF_TYPE=branch
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ATTEMPT=1
|
GITHUB_RUN_ID=325965155
|
||||||
GITHUB_RUN_ID=2188841209
|
GITHUB_RUN_NUMBER=3
|
||||||
GITHUB_RUN_NUMBER=24
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_c8594ff3-bed7-4fb7-b495-c63872db99a2
|
GITHUB_WORKFLOW=event
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"schedule": "*/10 * * * *"
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_EVENT_NAME=push
|
|
||||||
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_1.0dev4.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_REF=refs/tags/1.0dev4
|
|
||||||
GITHUB_REF_NAME=1.0dev4
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188815933
|
|
||||||
GITHUB_RUN_NUMBER=21
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_EVENT_NAME=push
|
|
||||||
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_1.1beta2.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_REF=refs/tags/1.1beta2
|
|
||||||
GITHUB_REF_NAME=1.1beta2
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188815933
|
|
||||||
GITHUB_RUN_NUMBER=21
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_EVENT_NAME=push
|
|
||||||
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_1.2.3rc2.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_REF=refs/tags/1.2.3rc2
|
|
||||||
GITHUB_REF_NAME=1.2.3rc2
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188815933
|
|
||||||
GITHUB_RUN_NUMBER=21
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_EVENT_NAME=push
|
|
||||||
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_1.2.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_REF=refs/tags/1.2
|
|
||||||
GITHUB_REF_NAME=1.2
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188815933
|
|
||||||
GITHUB_RUN_NUMBER=21
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_EVENT_NAME=push
|
|
||||||
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_1.2post1.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_REF=refs/tags/1.2post1
|
|
||||||
GITHUB_REF_NAME=1.2post1
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188815933
|
|
||||||
GITHUB_RUN_NUMBER=21
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,30 +1,23 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
GITHUB_ACTION=crazy-maxghaction-dump-context
|
||||||
GITHUB_ACTIONS=true
|
GITHUB_ACTIONS=true
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
GITHUB_ACTOR=crazy-max
|
||||||
GITHUB_API_URL=https://api.github.com
|
GITHUB_API_URL=https://api.github.com
|
||||||
GITHUB_BASE_REF=
|
GITHUB_BASE_REF=
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_6ee180c2-b331-434a-a867-89534cbefd83
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_20200110-RC2.json
|
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
GITHUB_HEAD_REF=
|
GITHUB_HEAD_REF=
|
||||||
GITHUB_JOB=test
|
GITHUB_JOB=event
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
||||||
GITHUB_REF=refs/tags/20200110-RC2
|
GITHUB_REF=refs/tags/20200110-RC2
|
||||||
GITHUB_REF_NAME=20200110-RC2
|
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
||||||
GITHUB_REF_PROTECTED=false
|
GITHUB_REPOSITORY_OWNER=crazy-max
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ATTEMPT=1
|
GITHUB_RUN_ID=325968230
|
||||||
GITHUB_RUN_ID=2188815933
|
GITHUB_RUN_NUMBER=4
|
||||||
GITHUB_RUN_NUMBER=21
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_WORKFLOW=event
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_EVENT_NAME=push
|
|
||||||
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_p1-v1.0.0.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_REF=refs/tags/p1/v1.0.0
|
|
||||||
GITHUB_REF_NAME=p1/v1.0.0
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188815933
|
|
||||||
GITHUB_RUN_NUMBER=21
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,30 +1,23 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
GITHUB_ACTION=crazy-maxghaction-dump-context
|
||||||
GITHUB_ACTIONS=true
|
GITHUB_ACTIONS=true
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
GITHUB_ACTOR=crazy-max
|
||||||
GITHUB_API_URL=https://api.github.com
|
GITHUB_API_URL=https://api.github.com
|
||||||
GITHUB_BASE_REF=
|
GITHUB_BASE_REF=
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_6ee180c2-b331-434a-a867-89534cbefd83
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_release1.json
|
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
GITHUB_HEAD_REF=
|
GITHUB_HEAD_REF=
|
||||||
GITHUB_JOB=test
|
GITHUB_JOB=event
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
||||||
GITHUB_REF=refs/tags/release1
|
GITHUB_REF=refs/tags/release1
|
||||||
GITHUB_REF_NAME=release1
|
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
||||||
GITHUB_REF_PROTECTED=false
|
GITHUB_REPOSITORY_OWNER=crazy-max
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ATTEMPT=1
|
GITHUB_RUN_ID=325968230
|
||||||
GITHUB_RUN_ID=2188815933
|
GITHUB_RUN_NUMBER=4
|
||||||
GITHUB_RUN_NUMBER=21
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_WORKFLOW=event
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@ -1,30 +1,23 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
GITHUB_ACTION=crazy-maxghaction-dump-context
|
||||||
GITHUB_ACTIONS=true
|
GITHUB_ACTIONS=true
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
GITHUB_ACTOR=crazy-max
|
||||||
GITHUB_API_URL=https://api.github.com
|
GITHUB_API_URL=https://api.github.com
|
||||||
GITHUB_BASE_REF=
|
GITHUB_BASE_REF=
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_6ee180c2-b331-434a-a867-89534cbefd83
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_sometag.json
|
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
GITHUB_HEAD_REF=
|
GITHUB_HEAD_REF=
|
||||||
GITHUB_JOB=test
|
GITHUB_JOB=event
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
||||||
GITHUB_REF=refs/tags/sometag
|
GITHUB_REF=refs/tags/sometag
|
||||||
GITHUB_REF_NAME=sometag
|
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
||||||
GITHUB_REF_PROTECTED=false
|
GITHUB_REPOSITORY_OWNER=crazy-max
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ATTEMPT=1
|
GITHUB_RUN_ID=325968230
|
||||||
GITHUB_RUN_ID=2188815933
|
GITHUB_RUN_NUMBER=4
|
||||||
GITHUB_RUN_NUMBER=21
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_WORKFLOW=event
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@ -1,30 +1,23 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
GITHUB_ACTION=crazy-maxghaction-dump-context
|
||||||
GITHUB_ACTIONS=true
|
GITHUB_ACTIONS=true
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
GITHUB_ACTOR=crazy-max
|
||||||
GITHUB_API_URL=https://api.github.com
|
GITHUB_API_URL=https://api.github.com
|
||||||
GITHUB_BASE_REF=
|
GITHUB_BASE_REF=
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_6ee180c2-b331-434a-a867-89534cbefd83
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_v1.1.1.json
|
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
GITHUB_HEAD_REF=
|
GITHUB_HEAD_REF=
|
||||||
GITHUB_JOB=test
|
GITHUB_JOB=event
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
||||||
GITHUB_REF=refs/tags/v1.1.1
|
GITHUB_REF=refs/tags/v1.1.1
|
||||||
GITHUB_REF_NAME=v1.1.1
|
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
||||||
GITHUB_REF_PROTECTED=false
|
GITHUB_REPOSITORY_OWNER=crazy-max
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ATTEMPT=1
|
GITHUB_RUN_ID=325968230
|
||||||
GITHUB_RUN_ID=2188815933
|
GITHUB_RUN_NUMBER=4
|
||||||
GITHUB_RUN_NUMBER=21
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_WORKFLOW=event
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@ -1,176 +0,0 @@
|
|||||||
{
|
|
||||||
"after": "860c1904a1ce19322e91ac35af1ab07466440c37",
|
|
||||||
"base_ref": "refs/heads/master",
|
|
||||||
"before": "0000000000000000000000000000000000000000",
|
|
||||||
"commits": [],
|
|
||||||
"compare": "https://github.com/docker/test-docker-action/compare/v1.1.1",
|
|
||||||
"created": true,
|
|
||||||
"deleted": false,
|
|
||||||
"forced": false,
|
|
||||||
"head_commit": {
|
|
||||||
"author": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"committer": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "CrazyMax",
|
|
||||||
"username": "crazy-max"
|
|
||||||
},
|
|
||||||
"distinct": true,
|
|
||||||
"id": "860c1904a1ce19322e91ac35af1ab07466440c37",
|
|
||||||
"message": "scheduled",
|
|
||||||
"timestamp": "2022-04-19T11:39:35+02:00",
|
|
||||||
"tree_id": "1d3608c3f204a4d754a1db925264929afd54daad",
|
|
||||||
"url": "https://github.com/docker/test-docker-action/commit/860c1904a1ce19322e91ac35af1ab07466440c37"
|
|
||||||
},
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"pusher": {
|
|
||||||
"email": "github@crazymax.dev",
|
|
||||||
"name": "crazy-max"
|
|
||||||
},
|
|
||||||
"ref": "refs/tags/v1.1.1",
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": 1596792180,
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"master_branch": "master",
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 6,
|
|
||||||
"open_issues_count": 6,
|
|
||||||
"organization": "docker",
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"email": "info@docker.com",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"name": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": 1650361263,
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers": 0,
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://github.com/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_EVENT_NAME=push
|
|
||||||
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_v1.2.3rc2.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_REF=refs/tags/v1.2.3rc2
|
|
||||||
GITHUB_REF_NAME=v1.2.3rc2
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188815933
|
|
||||||
GITHUB_RUN_NUMBER=21
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_7703d3cb-84db-438f-9f97-46e159388a55
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,30 +1,23 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
GITHUB_ACTION=crazy-maxghaction-dump-context
|
||||||
GITHUB_ACTIONS=true
|
GITHUB_ACTIONS=true
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
GITHUB_ACTOR=crazy-max
|
||||||
GITHUB_API_URL=https://api.github.com
|
GITHUB_API_URL=https://api.github.com
|
||||||
GITHUB_BASE_REF=
|
GITHUB_BASE_REF=
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_6ee180c2-b331-434a-a867-89534cbefd83
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_v2.0.8-beta.67.json
|
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
GITHUB_HEAD_REF=
|
GITHUB_HEAD_REF=
|
||||||
GITHUB_JOB=test
|
GITHUB_JOB=event
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
||||||
GITHUB_REF=refs/tags/v2.0.8-beta.67
|
GITHUB_REF=refs/tags/v2.0.8-beta.67
|
||||||
GITHUB_REF_NAME=v2.0.8-beta.67
|
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
||||||
GITHUB_REF_PROTECTED=false
|
GITHUB_REPOSITORY_OWNER=crazy-max
|
||||||
GITHUB_REF_TYPE=tag
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ATTEMPT=1
|
GITHUB_RUN_ID=325968230
|
||||||
GITHUB_RUN_ID=2188815933
|
GITHUB_RUN_NUMBER=4
|
||||||
GITHUB_RUN_NUMBER=21
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_7703d3cb-84db-438f-9f97-46e159388a55
|
GITHUB_WORKFLOW=event
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@ -1,30 +1,23 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
GITHUB_ACTION=crazy-maxghaction-dump-context
|
||||||
GITHUB_ACTIONS=true
|
GITHUB_ACTIONS=true
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
GITHUB_ACTOR=crazy-max
|
||||||
GITHUB_API_URL=https://api.github.com
|
GITHUB_API_URL=https://api.github.com
|
||||||
GITHUB_BASE_REF=
|
GITHUB_BASE_REF=
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_397d8f76-d5a2-478b-94ec-cadbffd1c08e
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_4c49cda0-764d-4055-9bd9-7caf67fcb10c
|
||||||
GITHUB_EVENT_NAME=workflow_dispatch
|
GITHUB_EVENT_NAME=workflow_dispatch
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_workflow_dispatch.json
|
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
GITHUB_HEAD_REF=
|
GITHUB_HEAD_REF=
|
||||||
GITHUB_JOB=test
|
GITHUB_JOB=event
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_397d8f76-d5a2-478b-94ec-cadbffd1c08e
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_4c49cda0-764d-4055-9bd9-7caf67fcb10c
|
||||||
GITHUB_REF=refs/heads/master
|
GITHUB_REF=refs/heads/master
|
||||||
GITHUB_REF_NAME=master
|
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
||||||
GITHUB_REF_PROTECTED=false
|
GITHUB_REPOSITORY_OWNER=crazy-max
|
||||||
GITHUB_REF_TYPE=branch
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ATTEMPT=1
|
GITHUB_RUN_ID=325962325
|
||||||
GITHUB_RUN_ID=2188839914
|
GITHUB_RUN_NUMBER=2
|
||||||
GITHUB_RUN_NUMBER=23
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_397d8f76-d5a2-478b-94ec-cadbffd1c08e
|
GITHUB_WORKFLOW=event
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@ -1,145 +0,0 @@
|
|||||||
{
|
|
||||||
"inputs": {
|
|
||||||
"logLevel": "warning"
|
|
||||||
},
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"ref": "refs/heads/master",
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 6,
|
|
||||||
"open_issues_count": 6,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": "2022-04-19T09:41:03Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
},
|
|
||||||
"workflow": ".github/workflows/metadata.yml"
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
GITHUB_ACTION=__crazy-max_ghaction-dump-context
|
|
||||||
GITHUB_ACTIONS=true
|
|
||||||
GITHUB_ACTION_PATH=/home/runner/work/_actions/crazy-max/ghaction-dump-context/v1
|
|
||||||
GITHUB_ACTION_REF=
|
|
||||||
GITHUB_ACTION_REPOSITORY=
|
|
||||||
GITHUB_ACTOR=crazy-max
|
|
||||||
GITHUB_API_URL=https://api.github.com
|
|
||||||
GITHUB_BASE_REF=
|
|
||||||
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_81f7da89-3d0b-493a-af1f-c67e5f779727
|
|
||||||
GITHUB_EVENT_NAME=workflow_dispatch
|
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_workflow_dispatch_dev.json
|
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
|
||||||
GITHUB_HEAD_REF=
|
|
||||||
GITHUB_JOB=test
|
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_81f7da89-3d0b-493a-af1f-c67e5f779727
|
|
||||||
GITHUB_REF=refs/heads/dev
|
|
||||||
GITHUB_REF_NAME=dev
|
|
||||||
GITHUB_REF_PROTECTED=false
|
|
||||||
GITHUB_REF_TYPE=branch
|
|
||||||
GITHUB_REPOSITORY=docker/test-docker-action
|
|
||||||
GITHUB_REPOSITORY_OWNER=docker
|
|
||||||
GITHUB_RETENTION_DAYS=90
|
|
||||||
GITHUB_RUN_ATTEMPT=1
|
|
||||||
GITHUB_RUN_ID=2188848679
|
|
||||||
GITHUB_RUN_NUMBER=25
|
|
||||||
GITHUB_SERVER_URL=https://github.com
|
|
||||||
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
|
||||||
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_81f7da89-3d0b-493a-af1f-c67e5f779727
|
|
||||||
GITHUB_WORKFLOW=metadata
|
|
||||||
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
|
@ -1,145 +0,0 @@
|
|||||||
{
|
|
||||||
"inputs": {
|
|
||||||
"logLevel": "warning"
|
|
||||||
},
|
|
||||||
"organization": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"description": "Docker helps developers bring their ideas to life by conquering the complexity of app development.",
|
|
||||||
"events_url": "https://api.github.com/orgs/docker/events",
|
|
||||||
"hooks_url": "https://api.github.com/orgs/docker/hooks",
|
|
||||||
"id": 5429470,
|
|
||||||
"issues_url": "https://api.github.com/orgs/docker/issues",
|
|
||||||
"login": "docker",
|
|
||||||
"members_url": "https://api.github.com/orgs/docker/members{/member}",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"public_members_url": "https://api.github.com/orgs/docker/public_members{/member}",
|
|
||||||
"repos_url": "https://api.github.com/orgs/docker/repos",
|
|
||||||
"url": "https://api.github.com/orgs/docker"
|
|
||||||
},
|
|
||||||
"ref": "refs/heads/dev",
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/docker/test-docker-action.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
|
||||||
"description": "Test \"Docker\" Actions",
|
|
||||||
"disabled": false,
|
|
||||||
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
|
||||||
"full_name": "docker/test-docker-action",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/docker/test-docker-action.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": "",
|
|
||||||
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
|
||||||
"html_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"id": 285789493,
|
|
||||||
"is_template": false,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
|
||||||
"language": "JavaScript",
|
|
||||||
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
|
||||||
"license": {
|
|
||||||
"key": "mit",
|
|
||||||
"name": "MIT License",
|
|
||||||
"node_id": "MDc6TGljZW5zZTEz",
|
|
||||||
"spdx_id": "MIT",
|
|
||||||
"url": "https://api.github.com/licenses/mit"
|
|
||||||
},
|
|
||||||
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "test-docker-action",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 6,
|
|
||||||
"open_issues_count": 6,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/docker/followers",
|
|
||||||
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/docker",
|
|
||||||
"id": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/docker/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/docker/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/docker/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
|
||||||
"type": "Organization",
|
|
||||||
"url": "https://api.github.com/users/docker"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
|
||||||
"pushed_at": "2022-04-19T09:41:03Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
|
||||||
"size": 796,
|
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
|
||||||
"svn_url": "https://github.com/docker/test-docker-action",
|
|
||||||
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
|
||||||
"topics": [],
|
|
||||||
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
|
||||||
"updated_at": "2022-04-19T09:05:09Z",
|
|
||||||
"url": "https://api.github.com/repos/docker/test-docker-action",
|
|
||||||
"visibility": "private",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/crazy-max",
|
|
||||||
"id": 1951866,
|
|
||||||
"login": "crazy-max",
|
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
|
||||||
},
|
|
||||||
"workflow": ".github/workflows/metadata.yml"
|
|
||||||
}
|
|
@ -1,5 +1,3 @@
|
|||||||
import {describe, expect, test} from '@jest/globals';
|
|
||||||
|
|
||||||
import {Flavor, Transform} from '../src/flavor';
|
import {Flavor, Transform} from '../src/flavor';
|
||||||
|
|
||||||
describe('transform', () => {
|
describe('transform', () => {
|
||||||
@ -34,9 +32,7 @@ describe('transform', () => {
|
|||||||
{
|
{
|
||||||
latest: "true",
|
latest: "true",
|
||||||
prefix: "",
|
prefix: "",
|
||||||
prefixLatest: false,
|
suffix: ""
|
||||||
suffix: "",
|
|
||||||
suffixLatest: false,
|
|
||||||
} as Flavor,
|
} as Flavor,
|
||||||
false
|
false
|
||||||
],
|
],
|
||||||
@ -47,9 +43,7 @@ describe('transform', () => {
|
|||||||
{
|
{
|
||||||
latest: "false",
|
latest: "false",
|
||||||
prefix: "",
|
prefix: "",
|
||||||
prefixLatest: false,
|
suffix: ""
|
||||||
suffix: "",
|
|
||||||
suffixLatest: false,
|
|
||||||
} as Flavor,
|
} as Flavor,
|
||||||
false
|
false
|
||||||
],
|
],
|
||||||
@ -60,9 +54,7 @@ describe('transform', () => {
|
|||||||
{
|
{
|
||||||
latest: "auto",
|
latest: "auto",
|
||||||
prefix: "",
|
prefix: "",
|
||||||
prefixLatest: false,
|
suffix: ""
|
||||||
suffix: "",
|
|
||||||
suffixLatest: false,
|
|
||||||
} as Flavor,
|
} as Flavor,
|
||||||
false
|
false
|
||||||
],
|
],
|
||||||
@ -80,9 +72,7 @@ describe('transform', () => {
|
|||||||
{
|
{
|
||||||
latest: "auto",
|
latest: "auto",
|
||||||
prefix: "sha-",
|
prefix: "sha-",
|
||||||
prefixLatest: false,
|
suffix: ""
|
||||||
suffix: "",
|
|
||||||
suffixLatest: false,
|
|
||||||
} as Flavor,
|
} as Flavor,
|
||||||
false
|
false
|
||||||
],
|
],
|
||||||
@ -93,9 +83,7 @@ describe('transform', () => {
|
|||||||
{
|
{
|
||||||
latest: "auto",
|
latest: "auto",
|
||||||
prefix: "",
|
prefix: "",
|
||||||
prefixLatest: false,
|
suffix: "-alpine"
|
||||||
suffix: "-alpine",
|
|
||||||
suffixLatest: false,
|
|
||||||
} as Flavor,
|
} as Flavor,
|
||||||
false
|
false
|
||||||
],
|
],
|
||||||
@ -108,74 +96,19 @@ describe('transform', () => {
|
|||||||
{
|
{
|
||||||
latest: "false",
|
latest: "false",
|
||||||
prefix: "dev-",
|
prefix: "dev-",
|
||||||
prefixLatest: false,
|
suffix: "-alpine"
|
||||||
suffix: "-alpine",
|
|
||||||
suffixLatest: false,
|
|
||||||
} as Flavor,
|
} as Flavor,
|
||||||
false
|
false
|
||||||
],
|
],
|
||||||
[
|
|
||||||
[
|
|
||||||
`prefix=dev-,onlatest=true`,
|
|
||||||
],
|
|
||||||
{
|
|
||||||
latest: "auto",
|
|
||||||
prefix: "dev-",
|
|
||||||
prefixLatest: true,
|
|
||||||
suffix: "",
|
|
||||||
suffixLatest: false,
|
|
||||||
} as Flavor,
|
|
||||||
false
|
|
||||||
],
|
|
||||||
[
|
|
||||||
[
|
|
||||||
`suffix=-alpine,onlatest=true`,
|
|
||||||
],
|
|
||||||
{
|
|
||||||
latest: "auto",
|
|
||||||
prefix: "",
|
|
||||||
prefixLatest: false,
|
|
||||||
suffix: "-alpine",
|
|
||||||
suffixLatest: true,
|
|
||||||
} as Flavor,
|
|
||||||
false
|
|
||||||
],
|
|
||||||
[
|
|
||||||
[
|
|
||||||
`prefix=dev-,onlatest=true`,
|
|
||||||
`suffix=-alpine,onlatest=true`,
|
|
||||||
],
|
|
||||||
{
|
|
||||||
latest: "auto",
|
|
||||||
prefix: "dev-",
|
|
||||||
prefixLatest: true,
|
|
||||||
suffix: "-alpine",
|
|
||||||
suffixLatest: true,
|
|
||||||
} as Flavor,
|
|
||||||
false
|
|
||||||
],
|
|
||||||
[
|
|
||||||
[
|
|
||||||
`prefix= `,
|
|
||||||
],
|
|
||||||
{
|
|
||||||
latest: "auto",
|
|
||||||
prefix: "",
|
|
||||||
prefixLatest: false,
|
|
||||||
suffix: "",
|
|
||||||
suffixLatest: false,
|
|
||||||
} as Flavor,
|
|
||||||
false
|
|
||||||
]
|
|
||||||
])('given %p attributes ', async (inputs: string[], expected: Flavor, invalid: boolean) => {
|
])('given %p attributes ', async (inputs: string[], expected: Flavor, invalid: boolean) => {
|
||||||
try {
|
try {
|
||||||
const flavor = Transform(inputs);
|
const flavor = Transform(inputs);
|
||||||
|
console.log(flavor);
|
||||||
expect(flavor).toEqual(expected);
|
expect(flavor).toEqual(expected);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (!invalid) {
|
if (!invalid) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line jest/no-conditional-expect
|
|
||||||
expect(true).toBe(invalid);
|
expect(true).toBe(invalid);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
17
__tests__/github.test.ts
Normal file
17
__tests__/github.test.ts
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import * as path from 'path';
|
||||||
|
import * as github from '../src/github';
|
||||||
|
import {ReposGetResponseData} from '@octokit/types';
|
||||||
|
|
||||||
|
jest.spyOn(github, 'repo').mockImplementation(
|
||||||
|
(): Promise<ReposGetResponseData> => {
|
||||||
|
return <Promise<ReposGetResponseData>>require(path.join(__dirname, 'fixtures', 'repo.json'));
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
describe('repo', () => {
|
||||||
|
it('returns GitHub repository', async () => {
|
||||||
|
const repo = await github.repo(process.env.GITHUB_TOKEN || '');
|
||||||
|
console.log(repo);
|
||||||
|
expect(repo.name).not.toBeNull();
|
||||||
|
});
|
||||||
|
});
|
@ -1,102 +0,0 @@
|
|||||||
import {describe, expect, test} from '@jest/globals';
|
|
||||||
|
|
||||||
import {Transform, Image} from '../src/image';
|
|
||||||
|
|
||||||
describe('transform', () => {
|
|
||||||
// prettier-ignore
|
|
||||||
test.each([
|
|
||||||
[
|
|
||||||
[
|
|
||||||
`name/foo`
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
name: `name/foo`,
|
|
||||||
enable: true,
|
|
||||||
}
|
|
||||||
] as Image[],
|
|
||||||
false
|
|
||||||
],
|
|
||||||
[
|
|
||||||
[
|
|
||||||
`name/foo,name/bar`
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
name: `name/foo`,
|
|
||||||
enable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: `name/bar`,
|
|
||||||
enable: true,
|
|
||||||
}
|
|
||||||
] as Image[],
|
|
||||||
false
|
|
||||||
],
|
|
||||||
[
|
|
||||||
[
|
|
||||||
`name/foo`,
|
|
||||||
`name/bar`
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
name: `name/foo`,
|
|
||||||
enable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: `name/bar`,
|
|
||||||
enable: true,
|
|
||||||
}
|
|
||||||
] as Image[],
|
|
||||||
false
|
|
||||||
],
|
|
||||||
[
|
|
||||||
[
|
|
||||||
`name=name/bar`,
|
|
||||||
`name/foo,enable=false`,
|
|
||||||
`name=ghcr.io/UserName/Foo,enable=true`
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
name: `name/bar`,
|
|
||||||
enable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: `name/foo`,
|
|
||||||
enable: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: `ghcr.io/UserName/Foo`,
|
|
||||||
enable: true,
|
|
||||||
},
|
|
||||||
] as Image[],
|
|
||||||
false
|
|
||||||
],
|
|
||||||
[
|
|
||||||
[`value=name/foo`], undefined, true
|
|
||||||
],
|
|
||||||
[
|
|
||||||
[`name/foo,enable=bar`], undefined, true
|
|
||||||
],
|
|
||||||
[
|
|
||||||
[`name/foo,bar=baz`], undefined, true
|
|
||||||
],
|
|
||||||
[
|
|
||||||
[`name=,enable=true`], undefined, true
|
|
||||||
],
|
|
||||||
[
|
|
||||||
[`name/foo,name=name/bar,enable=true`], undefined, true
|
|
||||||
]
|
|
||||||
])('given %p', async (l: string[], expected: Image[] | undefined, invalid: boolean) => {
|
|
||||||
try {
|
|
||||||
const images = Transform(l);
|
|
||||||
expect(images).toEqual(expected);
|
|
||||||
} catch (err) {
|
|
||||||
if (!invalid) {
|
|
||||||
console.error(err);
|
|
||||||
}
|
|
||||||
// eslint-disable-next-line jest/no-conditional-expect
|
|
||||||
expect(true).toBe(invalid);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,4 @@
|
|||||||
import {describe, expect, test} from '@jest/globals';
|
import {Transform, Parse, Tag, Type, RefEvent, DefaultPriorities} from '../src/tag';
|
||||||
|
|
||||||
import {Transform, Parse, Tag, Type, RefEvent, ShaFormat, DefaultPriorities} from '../src/tag';
|
|
||||||
|
|
||||||
describe('transform', () => {
|
describe('transform', () => {
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
@ -23,6 +21,8 @@ describe('transform', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Schedule],
|
"priority": DefaultPriorities[Type.Schedule],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"pattern": "nightly"
|
"pattern": "nightly"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -31,6 +31,8 @@ describe('transform', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Semver],
|
"priority": DefaultPriorities[Type.Semver],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"pattern": "{{version}}",
|
"pattern": "{{version}}",
|
||||||
"value": ""
|
"value": ""
|
||||||
}
|
}
|
||||||
@ -40,6 +42,8 @@ describe('transform', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Match],
|
"priority": DefaultPriorities[Type.Match],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"pattern": "\\d.\\d.\\d",
|
"pattern": "\\d.\\d.\\d",
|
||||||
"group": "0",
|
"group": "0",
|
||||||
"value": ""
|
"value": ""
|
||||||
@ -50,6 +54,8 @@ describe('transform', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Edge],
|
"priority": DefaultPriorities[Type.Edge],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"branch": ""
|
"branch": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -58,6 +64,8 @@ describe('transform', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Ref],
|
"priority": DefaultPriorities[Type.Ref],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"event": RefEvent.Branch
|
"event": RefEvent.Branch
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -66,6 +74,8 @@ describe('transform', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Ref],
|
"priority": DefaultPriorities[Type.Ref],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"event": RefEvent.Tag
|
"event": RefEvent.Tag
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -75,6 +85,7 @@ describe('transform', () => {
|
|||||||
"priority": DefaultPriorities[Type.Ref],
|
"priority": DefaultPriorities[Type.Ref],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
"prefix": "pr-",
|
"prefix": "pr-",
|
||||||
|
"suffix": "",
|
||||||
"event": RefEvent.PR
|
"event": RefEvent.PR
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -83,6 +94,8 @@ describe('transform', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Raw],
|
"priority": DefaultPriorities[Type.Raw],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"value": "foo"
|
"value": "foo"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -92,7 +105,7 @@ describe('transform', () => {
|
|||||||
"priority": DefaultPriorities[Type.Sha],
|
"priority": DefaultPriorities[Type.Sha],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
"prefix": "sha-",
|
"prefix": "sha-",
|
||||||
"format": ShaFormat.Short
|
"suffix": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
] as Tag[],
|
] as Tag[],
|
||||||
@ -101,12 +114,12 @@ describe('transform', () => {
|
|||||||
])('given %p', async (l: string[], expected: Tag[], invalid: boolean) => {
|
])('given %p', async (l: string[], expected: Tag[], invalid: boolean) => {
|
||||||
try {
|
try {
|
||||||
const tags = Transform(l);
|
const tags = Transform(l);
|
||||||
|
console.log(tags);
|
||||||
expect(tags).toEqual(expected);
|
expect(tags).toEqual(expected);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (!invalid) {
|
if (!invalid) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line jest/no-conditional-expect
|
|
||||||
expect(true).toBe(invalid);
|
expect(true).toBe(invalid);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -122,23 +135,13 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Schedule],
|
"priority": DefaultPriorities[Type.Schedule],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"pattern": "{{date 'YYYYMMDD'}}"
|
"pattern": "{{date 'YYYYMMDD'}}"
|
||||||
}
|
}
|
||||||
} as Tag,
|
} as Tag,
|
||||||
false
|
false
|
||||||
],
|
],
|
||||||
[
|
|
||||||
`type=schedule,enable=true,pattern={{date 'YYYYMMDD' tz='Asia/Tokyo'}}`,
|
|
||||||
{
|
|
||||||
type: Type.Schedule,
|
|
||||||
attrs: {
|
|
||||||
"priority": DefaultPriorities[Type.Schedule],
|
|
||||||
"enable": "true",
|
|
||||||
"pattern": `{{date 'YYYYMMDD' tz='Asia/Tokyo'}}`
|
|
||||||
}
|
|
||||||
} as Tag,
|
|
||||||
false
|
|
||||||
],
|
|
||||||
[
|
[
|
||||||
`type=semver,enable=true,pattern={{version}}`,
|
`type=semver,enable=true,pattern={{version}}`,
|
||||||
{
|
{
|
||||||
@ -146,6 +149,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Semver],
|
"priority": DefaultPriorities[Type.Semver],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"pattern": "{{version}}",
|
"pattern": "{{version}}",
|
||||||
"value": ""
|
"value": ""
|
||||||
}
|
}
|
||||||
@ -159,6 +164,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": "1",
|
"priority": "1",
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"pattern": "{{version}}",
|
"pattern": "{{version}}",
|
||||||
"value": ""
|
"value": ""
|
||||||
}
|
}
|
||||||
@ -172,6 +179,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": "1",
|
"priority": "1",
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"pattern": "{{version}}",
|
"pattern": "{{version}}",
|
||||||
"value": "v1.0.0"
|
"value": "v1.0.0"
|
||||||
}
|
}
|
||||||
@ -185,6 +194,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Match],
|
"priority": DefaultPriorities[Type.Match],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"pattern": "v(.*)",
|
"pattern": "v(.*)",
|
||||||
"group": "1",
|
"group": "1",
|
||||||
"value": ""
|
"value": ""
|
||||||
@ -199,6 +210,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Match],
|
"priority": DefaultPriorities[Type.Match],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"pattern": "^v(\\d.\\d.\\d)$",
|
"pattern": "^v(\\d.\\d.\\d)$",
|
||||||
"group": "1",
|
"group": "1",
|
||||||
"value": ""
|
"value": ""
|
||||||
@ -213,6 +226,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": "700",
|
"priority": "700",
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"pattern": "v(.*)",
|
"pattern": "v(.*)",
|
||||||
"group": "1",
|
"group": "1",
|
||||||
"value": ""
|
"value": ""
|
||||||
@ -227,6 +242,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Match],
|
"priority": DefaultPriorities[Type.Match],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"pattern": "v(.*)",
|
"pattern": "v(.*)",
|
||||||
"group": "1",
|
"group": "1",
|
||||||
"value": "v1.2.3"
|
"value": "v1.2.3"
|
||||||
@ -246,6 +263,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Edge],
|
"priority": DefaultPriorities[Type.Edge],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"branch": ""
|
"branch": ""
|
||||||
}
|
}
|
||||||
} as Tag,
|
} as Tag,
|
||||||
@ -258,6 +277,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Edge],
|
"priority": DefaultPriorities[Type.Edge],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"branch": "master"
|
"branch": "master"
|
||||||
}
|
}
|
||||||
} as Tag,
|
} as Tag,
|
||||||
@ -270,6 +291,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Ref],
|
"priority": DefaultPriorities[Type.Ref],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"event": RefEvent.Tag
|
"event": RefEvent.Tag
|
||||||
}
|
}
|
||||||
} as Tag,
|
} as Tag,
|
||||||
@ -282,6 +305,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Ref],
|
"priority": DefaultPriorities[Type.Ref],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"event": RefEvent.Branch
|
"event": RefEvent.Branch
|
||||||
}
|
}
|
||||||
} as Tag,
|
} as Tag,
|
||||||
@ -295,6 +320,7 @@ describe('parse', () => {
|
|||||||
"priority": DefaultPriorities[Type.Ref],
|
"priority": DefaultPriorities[Type.Ref],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
"prefix": "pr-",
|
"prefix": "pr-",
|
||||||
|
"suffix": "",
|
||||||
"event": RefEvent.PR
|
"event": RefEvent.PR
|
||||||
}
|
}
|
||||||
} as Tag,
|
} as Tag,
|
||||||
@ -317,6 +343,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Raw],
|
"priority": DefaultPriorities[Type.Raw],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"value": "acustomtag"
|
"value": "acustomtag"
|
||||||
}
|
}
|
||||||
} as Tag,
|
} as Tag,
|
||||||
@ -334,6 +362,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Raw],
|
"priority": DefaultPriorities[Type.Raw],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"value": "acustomtag2"
|
"value": "acustomtag2"
|
||||||
}
|
}
|
||||||
} as Tag,
|
} as Tag,
|
||||||
@ -346,6 +376,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Raw],
|
"priority": DefaultPriorities[Type.Raw],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"value": "acustomtag4"
|
"value": "acustomtag4"
|
||||||
}
|
}
|
||||||
} as Tag,
|
} as Tag,
|
||||||
@ -358,6 +390,8 @@ describe('parse', () => {
|
|||||||
attrs: {
|
attrs: {
|
||||||
"priority": DefaultPriorities[Type.Raw],
|
"priority": DefaultPriorities[Type.Raw],
|
||||||
"enable": "false",
|
"enable": "false",
|
||||||
|
"prefix": "",
|
||||||
|
"suffix": "",
|
||||||
"value": "acustomtag5"
|
"value": "acustomtag5"
|
||||||
}
|
}
|
||||||
} as Tag,
|
} as Tag,
|
||||||
@ -371,20 +405,7 @@ describe('parse', () => {
|
|||||||
"priority": DefaultPriorities[Type.Sha],
|
"priority": DefaultPriorities[Type.Sha],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
"prefix": "sha-",
|
"prefix": "sha-",
|
||||||
"format": ShaFormat.Short
|
"suffix": ""
|
||||||
}
|
|
||||||
} as Tag,
|
|
||||||
false
|
|
||||||
],
|
|
||||||
[
|
|
||||||
`type=sha,format=long`,
|
|
||||||
{
|
|
||||||
type: Type.Sha,
|
|
||||||
attrs: {
|
|
||||||
"priority": DefaultPriorities[Type.Sha],
|
|
||||||
"enable": "true",
|
|
||||||
"prefix": "sha-",
|
|
||||||
"format": ShaFormat.Long
|
|
||||||
}
|
}
|
||||||
} as Tag,
|
} as Tag,
|
||||||
false
|
false
|
||||||
@ -397,7 +418,7 @@ describe('parse', () => {
|
|||||||
"priority": DefaultPriorities[Type.Sha],
|
"priority": DefaultPriorities[Type.Sha],
|
||||||
"enable": "true",
|
"enable": "true",
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"format": ShaFormat.Short
|
"suffix": ""
|
||||||
}
|
}
|
||||||
} as Tag,
|
} as Tag,
|
||||||
false
|
false
|
||||||
@ -410,7 +431,7 @@ describe('parse', () => {
|
|||||||
"priority": DefaultPriorities[Type.Sha],
|
"priority": DefaultPriorities[Type.Sha],
|
||||||
"enable": "false",
|
"enable": "false",
|
||||||
"prefix": "sha-",
|
"prefix": "sha-",
|
||||||
"format": ShaFormat.Short
|
"suffix": ""
|
||||||
}
|
}
|
||||||
} as Tag,
|
} as Tag,
|
||||||
false
|
false
|
||||||
@ -431,19 +452,19 @@ describe('parse', () => {
|
|||||||
true
|
true
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
`type=sha,format=foo`,
|
`type=sha,enable=foo`,
|
||||||
{} as Tag,
|
{} as Tag,
|
||||||
true
|
true
|
||||||
]
|
]
|
||||||
])('given %p event ', async (s: string, expected: Tag, invalid: boolean) => {
|
])('given %p event ', async (s: string, expected: Tag, invalid: boolean) => {
|
||||||
try {
|
try {
|
||||||
const tag = Parse(s);
|
const tag = Parse(s);
|
||||||
|
console.log(tag);
|
||||||
expect(tag).toEqual(expected);
|
expect(tag).toEqual(expected);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (!invalid) {
|
if (!invalid) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line jest/no-conditional-expect
|
|
||||||
expect(true).toBe(invalid);
|
expect(true).toBe(invalid);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
35
action.yml
35
action.yml
@ -1,19 +1,15 @@
|
|||||||
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
||||||
name: 'Docker Metadata action'
|
name: 'Docker Meta'
|
||||||
description: "GitHub Action to extract metadata (tags, labels) for Docker"
|
description: "GitHub Action to extract metadata (tags, labels) for Docker"
|
||||||
author: 'docker'
|
author: 'crazy-max'
|
||||||
branding:
|
branding:
|
||||||
icon: 'anchor'
|
|
||||||
color: 'blue'
|
color: 'blue'
|
||||||
|
icon: 'layers'
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
context:
|
|
||||||
description: 'Where to get context data. Allowed options are "workflow" (default), "git".'
|
|
||||||
default: "workflow"
|
|
||||||
required: true
|
|
||||||
images:
|
images:
|
||||||
description: 'List of Docker images to use as base name for tags'
|
description: 'List of Docker images to use as base name for tags'
|
||||||
required: false
|
required: true
|
||||||
tags:
|
tags:
|
||||||
description: 'List of tags as key-value pair attributes'
|
description: 'List of tags as key-value pair attributes'
|
||||||
required: false
|
required: false
|
||||||
@ -23,21 +19,12 @@ inputs:
|
|||||||
labels:
|
labels:
|
||||||
description: 'List of custom labels'
|
description: 'List of custom labels'
|
||||||
required: false
|
required: false
|
||||||
annotations:
|
|
||||||
description: 'List of custom annotations'
|
|
||||||
required: false
|
|
||||||
sep-tags:
|
sep-tags:
|
||||||
description: 'Separator to use for tags output (default \n)'
|
description: 'Separator to use for tags output (default \n)'
|
||||||
required: false
|
required: false
|
||||||
sep-labels:
|
sep-labels:
|
||||||
description: 'Separator to use for labels output (default \n)'
|
description: 'Separator to use for labels output (default \n)'
|
||||||
required: false
|
required: false
|
||||||
sep-annotations:
|
|
||||||
description: 'Separator to use for annotations output (default \n)'
|
|
||||||
required: false
|
|
||||||
bake-target:
|
|
||||||
description: 'Bake target name (default docker-metadata-action)'
|
|
||||||
required: false
|
|
||||||
github-token:
|
github-token:
|
||||||
description: 'GitHub Token as provided by secrets'
|
description: 'GitHub Token as provided by secrets'
|
||||||
default: ${{ github.token }}
|
default: ${{ github.token }}
|
||||||
@ -50,19 +37,9 @@ outputs:
|
|||||||
description: 'Generated Docker tags'
|
description: 'Generated Docker tags'
|
||||||
labels:
|
labels:
|
||||||
description: 'Generated Docker labels'
|
description: 'Generated Docker labels'
|
||||||
annotations:
|
|
||||||
description: 'Generated annotations'
|
|
||||||
json:
|
|
||||||
description: 'JSON output of tags and labels'
|
|
||||||
bake-file-tags:
|
|
||||||
description: 'Bake definition file with tags'
|
|
||||||
bake-file-labels:
|
|
||||||
description: 'Bake definition file with labels'
|
|
||||||
bake-file-annotations:
|
|
||||||
description: 'Bake definition file with annotations'
|
|
||||||
bake-file:
|
bake-file:
|
||||||
description: 'Bake definition file with tags and labels'
|
description: 'Bake definiton file'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'node20'
|
using: 'node12'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
comment: false
|
|
||||||
github_checks:
|
|
||||||
annotations: false
|
|
@ -1,80 +0,0 @@
|
|||||||
# syntax=docker/dockerfile:1
|
|
||||||
|
|
||||||
ARG NODE_VERSION=20
|
|
||||||
|
|
||||||
FROM node:${NODE_VERSION}-alpine AS base
|
|
||||||
RUN apk add --no-cache cpio findutils git
|
|
||||||
WORKDIR /src
|
|
||||||
RUN --mount=type=bind,target=.,rw \
|
|
||||||
--mount=type=cache,target=/src/.yarn/cache <<EOT
|
|
||||||
corepack enable
|
|
||||||
yarn --version
|
|
||||||
yarn config set --home enableTelemetry 0
|
|
||||||
EOT
|
|
||||||
|
|
||||||
FROM base AS deps
|
|
||||||
RUN --mount=type=bind,target=.,rw \
|
|
||||||
--mount=type=cache,target=/src/.yarn/cache \
|
|
||||||
--mount=type=cache,target=/src/node_modules \
|
|
||||||
yarn install && mkdir /vendor && cp yarn.lock /vendor
|
|
||||||
|
|
||||||
FROM scratch AS vendor-update
|
|
||||||
COPY --from=deps /vendor /
|
|
||||||
|
|
||||||
FROM deps AS vendor-validate
|
|
||||||
RUN --mount=type=bind,target=.,rw <<EOT
|
|
||||||
set -e
|
|
||||||
git add -A
|
|
||||||
cp -rf /vendor/* .
|
|
||||||
if [ -n "$(git status --porcelain -- yarn.lock)" ]; then
|
|
||||||
echo >&2 'ERROR: Vendor result differs. Please vendor your package with "docker buildx bake vendor"'
|
|
||||||
git status --porcelain -- yarn.lock
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
EOT
|
|
||||||
|
|
||||||
FROM deps AS build
|
|
||||||
RUN --mount=type=bind,target=.,rw \
|
|
||||||
--mount=type=cache,target=/src/.yarn/cache \
|
|
||||||
--mount=type=cache,target=/src/node_modules \
|
|
||||||
yarn run build && mkdir /out && cp -Rf dist /out/
|
|
||||||
|
|
||||||
FROM scratch AS build-update
|
|
||||||
COPY --from=build /out /
|
|
||||||
|
|
||||||
FROM build AS build-validate
|
|
||||||
RUN --mount=type=bind,target=.,rw <<EOT
|
|
||||||
set -e
|
|
||||||
git add -A
|
|
||||||
cp -rf /out/* .
|
|
||||||
if [ -n "$(git status --porcelain -- dist)" ]; then
|
|
||||||
echo >&2 'ERROR: Build result differs. Please build first with "docker buildx bake build"'
|
|
||||||
git status --porcelain -- dist
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
EOT
|
|
||||||
|
|
||||||
FROM deps AS format
|
|
||||||
RUN --mount=type=bind,target=.,rw \
|
|
||||||
--mount=type=cache,target=/src/.yarn/cache \
|
|
||||||
--mount=type=cache,target=/src/node_modules \
|
|
||||||
yarn run format \
|
|
||||||
&& mkdir /out && find . -name '*.ts' -not -path './node_modules/*' -not -path './.yarn/*' | cpio -pdm /out
|
|
||||||
|
|
||||||
FROM scratch AS format-update
|
|
||||||
COPY --from=format /out /
|
|
||||||
|
|
||||||
FROM deps AS lint
|
|
||||||
RUN --mount=type=bind,target=.,rw \
|
|
||||||
--mount=type=cache,target=/src/.yarn/cache \
|
|
||||||
--mount=type=cache,target=/src/node_modules \
|
|
||||||
yarn run lint
|
|
||||||
|
|
||||||
FROM deps AS test
|
|
||||||
RUN --mount=type=bind,target=.,rw \
|
|
||||||
--mount=type=cache,target=/src/.yarn/cache \
|
|
||||||
--mount=type=cache,target=/src/node_modules \
|
|
||||||
yarn run test --coverage --coverageDirectory=/tmp/coverage
|
|
||||||
|
|
||||||
FROM scratch AS test-coverage
|
|
||||||
COPY --from=test /tmp/coverage /
|
|
25443
dist/index.js
generated
vendored
25443
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
1
dist/index.js.map
generated
vendored
1
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
4054
dist/licenses.txt
generated
vendored
4054
dist/licenses.txt
generated
vendored
File diff suppressed because it is too large
Load Diff
1
dist/sourcemap-register.js
generated
vendored
1
dist/sourcemap-register.js
generated
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,10 @@
|
|||||||
target "_common" {
|
variable "NODE_VERSION" {
|
||||||
|
default = "12"
|
||||||
|
}
|
||||||
|
|
||||||
|
target "node-version" {
|
||||||
args = {
|
args = {
|
||||||
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
|
NODE_VERSION = NODE_VERSION
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -9,58 +13,55 @@ group "default" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group "pre-checkin" {
|
group "pre-checkin" {
|
||||||
targets = ["vendor", "format", "build"]
|
targets = ["vendor-update", "format", "build"]
|
||||||
}
|
}
|
||||||
|
|
||||||
group "validate" {
|
group "validate" {
|
||||||
targets = ["lint", "build-validate", "vendor-validate"]
|
targets = ["format-validate", "build-validate", "vendor-validate"]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "build" {
|
target "build" {
|
||||||
inherits = ["_common"]
|
inherits = ["node-version"]
|
||||||
dockerfile = "dev.Dockerfile"
|
dockerfile = "./hack/build.Dockerfile"
|
||||||
target = "build-update"
|
target = "build-update"
|
||||||
output = ["."]
|
output = ["."]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "build-validate" {
|
target "build-validate" {
|
||||||
inherits = ["_common"]
|
inherits = ["node-version"]
|
||||||
dockerfile = "dev.Dockerfile"
|
dockerfile = "./hack/build.Dockerfile"
|
||||||
target = "build-validate"
|
target = "build-validate"
|
||||||
output = ["type=cacheonly"]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
target "format" {
|
target "format" {
|
||||||
inherits = ["_common"]
|
inherits = ["node-version"]
|
||||||
dockerfile = "dev.Dockerfile"
|
dockerfile = "./hack/build.Dockerfile"
|
||||||
target = "format-update"
|
target = "format-update"
|
||||||
output = ["."]
|
output = ["."]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "lint" {
|
target "format-validate" {
|
||||||
inherits = ["_common"]
|
inherits = ["node-version"]
|
||||||
dockerfile = "dev.Dockerfile"
|
dockerfile = "./hack/build.Dockerfile"
|
||||||
target = "lint"
|
target = "format-validate"
|
||||||
output = ["type=cacheonly"]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
target "vendor" {
|
target "vendor-update" {
|
||||||
inherits = ["_common"]
|
inherits = ["node-version"]
|
||||||
dockerfile = "dev.Dockerfile"
|
dockerfile = "./hack/vendor.Dockerfile"
|
||||||
target = "vendor-update"
|
target = "update"
|
||||||
output = ["."]
|
output = ["."]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "vendor-validate" {
|
target "vendor-validate" {
|
||||||
inherits = ["_common"]
|
inherits = ["node-version"]
|
||||||
dockerfile = "dev.Dockerfile"
|
dockerfile = "./hack/vendor.Dockerfile"
|
||||||
target = "vendor-validate"
|
target = "validate"
|
||||||
output = ["type=cacheonly"]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
target "test" {
|
target "test" {
|
||||||
inherits = ["_common"]
|
inherits = ["node-version"]
|
||||||
dockerfile = "dev.Dockerfile"
|
dockerfile = "./hack/test.Dockerfile"
|
||||||
target = "test-coverage"
|
target = "test-coverage"
|
||||||
output = ["./coverage"]
|
output = ["./coverage"]
|
||||||
}
|
}
|
||||||
|
42
hack/build.Dockerfile
Normal file
42
hack/build.Dockerfile
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# syntax=docker/dockerfile:1.2
|
||||||
|
ARG NODE_VERSION
|
||||||
|
|
||||||
|
FROM node:${NODE_VERSION}-alpine AS base
|
||||||
|
RUN apk add --no-cache cpio findutils git
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
FROM base AS deps
|
||||||
|
RUN --mount=type=bind,target=.,rw \
|
||||||
|
--mount=type=cache,target=/src/node_modules \
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
FROM deps AS build
|
||||||
|
RUN --mount=type=bind,target=.,rw \
|
||||||
|
--mount=type=cache,target=/src/node_modules \
|
||||||
|
yarn run build && mkdir /out && cp -Rf dist /out/
|
||||||
|
|
||||||
|
FROM scratch AS build-update
|
||||||
|
COPY --from=build /out /
|
||||||
|
|
||||||
|
FROM build AS build-validate
|
||||||
|
RUN --mount=type=bind,target=.,rw \
|
||||||
|
git add -A && cp -rf /out/* .; \
|
||||||
|
if [ -n "$(git status --porcelain -- dist)" ]; then \
|
||||||
|
echo >&2 'ERROR: Build result differs. Please build first with "docker buildx bake build"'; \
|
||||||
|
git status --porcelain -- dist; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
FROM deps AS format
|
||||||
|
RUN --mount=type=bind,target=.,rw \
|
||||||
|
--mount=type=cache,target=/src/node_modules \
|
||||||
|
yarn run format \
|
||||||
|
&& mkdir /out && find . -name '*.ts' -not -path './node_modules/*' | cpio -pdm /out
|
||||||
|
|
||||||
|
FROM scratch AS format-update
|
||||||
|
COPY --from=format /out /
|
||||||
|
|
||||||
|
FROM deps AS format-validate
|
||||||
|
RUN --mount=type=bind,target=.,rw \
|
||||||
|
--mount=type=cache,target=/src/node_modules \
|
||||||
|
yarn run format-check \
|
21
hack/test.Dockerfile
Normal file
21
hack/test.Dockerfile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# syntax=docker/dockerfile:1.2
|
||||||
|
ARG NODE_VERSION
|
||||||
|
|
||||||
|
FROM node:${NODE_VERSION}-alpine AS base
|
||||||
|
RUN apk add --no-cache git
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
FROM base AS deps
|
||||||
|
RUN --mount=type=bind,target=.,rw \
|
||||||
|
--mount=type=cache,target=/src/node_modules \
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
FROM deps AS test
|
||||||
|
ENV RUNNER_TEMP=/tmp/github_runner
|
||||||
|
ENV RUNNER_TOOL_CACHE=/tmp/github_tool_cache
|
||||||
|
RUN --mount=type=bind,target=.,rw \
|
||||||
|
--mount=type=cache,target=/src/node_modules \
|
||||||
|
yarn run test --coverageDirectory=/tmp/coverage
|
||||||
|
|
||||||
|
FROM scratch AS test-coverage
|
||||||
|
COPY --from=test /tmp/coverage /
|
23
hack/vendor.Dockerfile
Normal file
23
hack/vendor.Dockerfile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# syntax=docker/dockerfile:1.2
|
||||||
|
ARG NODE_VERSION
|
||||||
|
|
||||||
|
FROM node:${NODE_VERSION}-alpine AS base
|
||||||
|
RUN apk add --no-cache git
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
FROM base AS vendored
|
||||||
|
RUN --mount=type=bind,target=.,rw \
|
||||||
|
--mount=type=cache,target=/src/node_modules \
|
||||||
|
yarn install && mkdir /out && cp yarn.lock /out
|
||||||
|
|
||||||
|
FROM scratch AS update
|
||||||
|
COPY --from=vendored /out /
|
||||||
|
|
||||||
|
FROM vendored AS validate
|
||||||
|
RUN --mount=type=bind,target=.,rw \
|
||||||
|
git add -A && cp -rf /out/* .; \
|
||||||
|
if [ -n "$(git status --porcelain -- yarn.lock)" ]; then \
|
||||||
|
echo >&2 'ERROR: Vendor result differs. Please vendor your package with "docker buildx bake vendor-update"'; \
|
||||||
|
git status --porcelain -- yarn.lock; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
12
jest.config.js
Normal file
12
jest.config.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
module.exports = {
|
||||||
|
clearMocks: true,
|
||||||
|
moduleFileExtensions: ['js', 'ts'],
|
||||||
|
setupFiles: ["dotenv/config"],
|
||||||
|
testEnvironment: 'node',
|
||||||
|
testMatch: ['**/*.test.ts'],
|
||||||
|
testRunner: 'jest-circus/runner',
|
||||||
|
transform: {
|
||||||
|
'^.+\\.ts$': 'ts-jest'
|
||||||
|
},
|
||||||
|
verbose: false
|
||||||
|
}
|
@ -1,31 +0,0 @@
|
|||||||
import fs from 'fs';
|
|
||||||
import os from 'os';
|
|
||||||
import path from 'path';
|
|
||||||
|
|
||||||
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-metadata-action-'));
|
|
||||||
|
|
||||||
process.env = Object.assign({}, process.env, {
|
|
||||||
TEMP: tmpDir,
|
|
||||||
GITHUB_REPOSITORY: 'docker/metadata-action',
|
|
||||||
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
|
|
||||||
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
|
|
||||||
}) as {
|
|
||||||
[key: string]: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
clearMocks: true,
|
|
||||||
testEnvironment: 'node',
|
|
||||||
moduleFileExtensions: ['js', 'ts'],
|
|
||||||
setupFiles: ['dotenv/config'],
|
|
||||||
testMatch: ['**/*.test.ts'],
|
|
||||||
transform: {
|
|
||||||
'^.+\\.ts$': 'ts-jest'
|
|
||||||
},
|
|
||||||
moduleNameMapper: {
|
|
||||||
'^csv-parse/sync': '<rootDir>/node_modules/csv-parse/dist/cjs/sync.cjs'
|
|
||||||
},
|
|
||||||
collectCoverageFrom: ['src/**/{!(main.ts),}.ts'],
|
|
||||||
coveragePathIgnorePatterns: ['lib/', 'node_modules/', '__mocks__/', '__tests__/'],
|
|
||||||
verbose: true
|
|
||||||
};
|
|
67
package.json
67
package.json
@ -1,58 +1,45 @@
|
|||||||
{
|
{
|
||||||
"name": "docker-metadata-action",
|
"name": "docker-meta",
|
||||||
"description": "GitHub Action to extract metadata (tags, labels) for Docker",
|
"description": "GitHub Action to extract metadata (tags, labels) for Docker",
|
||||||
"main": "src/main.ts",
|
"main": "lib/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "ncc build --source-map --minify --license licenses.txt",
|
"build": "tsc && ncc build",
|
||||||
"lint": "yarn run prettier && yarn run eslint",
|
"test": "jest --coverage",
|
||||||
"format": "yarn run prettier:fix && yarn run eslint:fix",
|
"format": "prettier --write **/*.ts",
|
||||||
"eslint": "eslint --max-warnings=0 .",
|
"format-check": "prettier --check **/*.ts",
|
||||||
"eslint:fix": "eslint --fix .",
|
"pre-checkin": "yarn run format && yarn run build"
|
||||||
"prettier": "prettier --check \"./**/*.ts\"",
|
|
||||||
"prettier:fix": "prettier --write \"./**/*.ts\"",
|
|
||||||
"test": "jest"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/docker/metadata-action.git"
|
"url": "git+https://github.com/crazy-max/ghaction-docker-meta.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"actions",
|
"actions",
|
||||||
"docker",
|
"docker",
|
||||||
"metadata",
|
"meta",
|
||||||
"tag",
|
"tag",
|
||||||
"label"
|
"label"
|
||||||
],
|
],
|
||||||
"author": "Docker Inc.",
|
"author": "CrazyMax",
|
||||||
"license": "Apache-2.0",
|
"license": "MIT",
|
||||||
"packageManager": "yarn@3.6.3",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.2.6",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^4.0.0",
|
||||||
"@docker/actions-toolkit": "^0.56.0",
|
"csv-parse": "^4.15.3",
|
||||||
"@renovate/pep440": "^1.0.0",
|
"handlebars": "^4.7.7",
|
||||||
"csv-parse": "^5.6.0",
|
"moment": "^2.29.1",
|
||||||
"handlebars": "^4.7.8",
|
"semver": "^7.3.5"
|
||||||
"moment": "^2.30.1",
|
|
||||||
"moment-timezone": "^0.5.47",
|
|
||||||
"semver": "^7.7.1"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/csv-parse": "^1.2.2",
|
"@types/jest": "^26.0.0",
|
||||||
"@types/node": "^20.12.12",
|
"@types/node": "^14.11.2",
|
||||||
"@types/semver": "^7.5.8",
|
"@vercel/ncc": "^0.24.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
"dotenv": "^8.2.0",
|
||||||
"@typescript-eslint/parser": "^7.9.0",
|
"jest": "^26.0.1",
|
||||||
"@vercel/ncc": "^0.38.1",
|
"jest-circus": "^26.0.1",
|
||||||
"dotenv": "^16.4.5",
|
"jest-runtime": "^26.0.1",
|
||||||
"eslint": "^8.57.0",
|
"prettier": "^2.0.4",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"ts-jest": "^26.4.1",
|
||||||
"eslint-plugin-jest": "^28.5.0",
|
"typescript": "^4.0.3"
|
||||||
"eslint-plugin-prettier": "^5.1.3",
|
|
||||||
"jest": "^29.7.0",
|
|
||||||
"prettier": "^3.2.5",
|
|
||||||
"ts-jest": "^29.1.2",
|
|
||||||
"ts-node": "^10.9.2",
|
|
||||||
"typescript": "^5.4.5"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
148
src/context.ts
148
src/context.ts
@ -1,136 +1,68 @@
|
|||||||
|
import csvparse from 'csv-parse/lib/sync';
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
import {Context as GithubContext} from '@actions/github/lib/context';
|
import * as fs from 'fs';
|
||||||
import {Util} from '@docker/actions-toolkit/lib/util';
|
import * as os from 'os';
|
||||||
import {Git} from '@docker/actions-toolkit/lib/git';
|
import * as path from 'path';
|
||||||
import {GitHub} from '@docker/actions-toolkit/lib/github';
|
|
||||||
import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
|
|
||||||
|
|
||||||
export interface Context extends GithubContext {
|
let _tmpDir: string;
|
||||||
commitDate: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Inputs {
|
export interface Inputs {
|
||||||
context: ContextSource;
|
|
||||||
images: string[];
|
images: string[];
|
||||||
tags: string[];
|
tags: string[];
|
||||||
flavor: string[];
|
flavor: string[];
|
||||||
labels: string[];
|
labels: string[];
|
||||||
annotations: string[];
|
|
||||||
sepTags: string;
|
sepTags: string;
|
||||||
sepLabels: string;
|
sepLabels: string;
|
||||||
sepAnnotations: string;
|
|
||||||
bakeTarget: string;
|
|
||||||
githubToken: string;
|
githubToken: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function tmpDir(): string {
|
||||||
|
if (!_tmpDir) {
|
||||||
|
_tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'ghaction-docker-meta-')).split(path.sep).join(path.posix.sep);
|
||||||
|
}
|
||||||
|
return _tmpDir;
|
||||||
|
}
|
||||||
|
|
||||||
export function getInputs(): Inputs {
|
export function getInputs(): Inputs {
|
||||||
return {
|
return {
|
||||||
context: (core.getInput('context') || ContextSource.workflow) as ContextSource,
|
images: getInputList('images'),
|
||||||
images: Util.getInputList('images', {ignoreComma: true, comment: '#'}),
|
tags: getInputList('tags', true),
|
||||||
tags: Util.getInputList('tags', {ignoreComma: true, comment: '#'}),
|
flavor: getInputList('flavor', true),
|
||||||
flavor: Util.getInputList('flavor', {ignoreComma: true, comment: '#'}),
|
labels: getInputList('labels', true),
|
||||||
labels: Util.getInputList('labels', {ignoreComma: true, comment: '#'}),
|
sepTags: core.getInput('sep-tags') || `\n`,
|
||||||
annotations: Util.getInputList('annotations', {ignoreComma: true, comment: '#'}),
|
sepLabels: core.getInput('sep-labels') || `\n`,
|
||||||
sepTags: core.getInput('sep-tags', {trimWhitespace: false}) || `\n`,
|
|
||||||
sepLabels: core.getInput('sep-labels', {trimWhitespace: false}) || `\n`,
|
|
||||||
sepAnnotations: core.getInput('sep-annotations', {trimWhitespace: false}) || `\n`,
|
|
||||||
bakeTarget: core.getInput('bake-target') || `docker-metadata-action`,
|
|
||||||
githubToken: core.getInput('github-token')
|
githubToken: core.getInput('github-token')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ContextSource {
|
export function getInputList(name: string, ignoreComma?: boolean): string[] {
|
||||||
workflow = 'workflow',
|
let res: Array<string> = [];
|
||||||
git = 'git'
|
|
||||||
|
const items = core.getInput(name);
|
||||||
|
if (items == '') {
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getContext(source: ContextSource, toolkit: Toolkit): Promise<Context> {
|
for (let output of csvparse(items, {
|
||||||
switch (source) {
|
columns: false,
|
||||||
case ContextSource.workflow:
|
relaxColumnCount: true,
|
||||||
return await getContextFromWorkflow(toolkit);
|
skipLinesWithEmptyValues: true
|
||||||
case ContextSource.git:
|
}) as Array<string[]>) {
|
||||||
return await getContextFromGit();
|
if (output.length == 1) {
|
||||||
default:
|
res.push(output[0]);
|
||||||
throw new Error(`Invalid context source: ${source}`);
|
continue;
|
||||||
|
} else if (!ignoreComma) {
|
||||||
|
res.push(...output);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
res.push(output.join(','));
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getContextFromWorkflow(toolkit: Toolkit): Promise<Context> {
|
return res.filter(item => item).map(pat => pat.trim());
|
||||||
const context = GitHub.context;
|
|
||||||
|
|
||||||
// Needs to override Git reference with pr ref instead of upstream branch ref
|
|
||||||
// for pull_request_target event
|
|
||||||
// https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
|
|
||||||
if (/pull_request_target/.test(context.eventName)) {
|
|
||||||
context.ref = `refs/pull/${context.payload.number}/merge`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DOCKER_METADATA_PR_HEAD_SHA env var can be used to set associated head
|
export const asyncForEach = async (array, callback) => {
|
||||||
// SHA instead of commit SHA that triggered the workflow on pull request
|
for (let index = 0; index < array.length; index++) {
|
||||||
// event.
|
await callback(array[index], index, array);
|
||||||
if (/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA || '')) {
|
|
||||||
if ((/pull_request/.test(context.eventName) || /pull_request_target/.test(context.eventName)) && context.payload?.pull_request?.head?.sha != undefined) {
|
|
||||||
context.sha = context.payload.pull_request.head.sha;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
commitDate: await getCommitDateFromWorkflow(context.sha, toolkit),
|
|
||||||
...context
|
|
||||||
} as Context;
|
|
||||||
}
|
|
||||||
|
|
||||||
async function getContextFromGit(): Promise<Context> {
|
|
||||||
const ctx = await Git.context();
|
|
||||||
|
|
||||||
return {
|
|
||||||
commitDate: await Git.commitDate(ctx.sha),
|
|
||||||
...ctx
|
|
||||||
} as Context;
|
|
||||||
}
|
|
||||||
|
|
||||||
async function getCommitDateFromWorkflow(sha: string, toolkit: Toolkit): Promise<Date> {
|
|
||||||
const event = GitHub.context.payload as unknown as {
|
|
||||||
// branch push
|
|
||||||
commits?: Array<{
|
|
||||||
timestamp: string;
|
|
||||||
// commit sha
|
|
||||||
id: string;
|
|
||||||
}>;
|
|
||||||
// tags
|
|
||||||
head_commit?: {
|
|
||||||
timestamp: string;
|
|
||||||
// commit sha
|
|
||||||
id: string;
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
if (event.commits) {
|
|
||||||
const commitDate = event.commits.find(x => x.id === sha)?.timestamp;
|
|
||||||
if (commitDate) {
|
|
||||||
return new Date(commitDate);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event.head_commit) {
|
|
||||||
if (event.head_commit.id === sha) {
|
|
||||||
return new Date(event.head_commit.timestamp);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// fallback to github api for commit date
|
|
||||||
try {
|
|
||||||
const commit = await toolkit.github.octokit.rest.repos.getCommit({
|
|
||||||
owner: GitHub.context.repo.owner,
|
|
||||||
repo: GitHub.context.repo.repo,
|
|
||||||
ref: sha
|
|
||||||
});
|
|
||||||
if (commit.data.commit.committer?.date) {
|
|
||||||
return new Date(commit.data.commit.committer.date);
|
|
||||||
}
|
|
||||||
throw new Error('Committer date not found');
|
|
||||||
} catch (error) {
|
|
||||||
core.debug(`Failed to get commit date from GitHub API: ${error.message}`);
|
|
||||||
return new Date();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -1,76 +1,41 @@
|
|||||||
import {parse} from 'csv-parse/sync';
|
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
|
|
||||||
export interface Flavor {
|
export interface Flavor {
|
||||||
latest: string;
|
latest: string;
|
||||||
prefix: string;
|
prefix: string;
|
||||||
prefixLatest: boolean;
|
|
||||||
suffix: string;
|
suffix: string;
|
||||||
suffixLatest: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function Transform(inputs: string[]): Flavor {
|
export function Transform(inputs: string[]): Flavor {
|
||||||
const flavor: Flavor = {
|
const flavor: Flavor = {
|
||||||
latest: 'auto',
|
latest: 'auto',
|
||||||
prefix: '',
|
prefix: '',
|
||||||
prefixLatest: false,
|
suffix: ''
|
||||||
suffix: '',
|
|
||||||
suffixLatest: false
|
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const input of inputs) {
|
for (const input of inputs) {
|
||||||
const fields = parse(input, {
|
const parts = input.split('=', 2);
|
||||||
relaxColumnCount: true,
|
|
||||||
skipEmptyLines: true
|
|
||||||
})[0];
|
|
||||||
let onlatestfor = '';
|
|
||||||
for (const field of fields) {
|
|
||||||
const parts = field
|
|
||||||
.toString()
|
|
||||||
.split('=')
|
|
||||||
.map(item => item.trim());
|
|
||||||
if (parts.length == 1) {
|
if (parts.length == 1) {
|
||||||
throw new Error(`Invalid flavor entry: ${input}`);
|
throw new Error(`Invalid entry: ${input}`);
|
||||||
}
|
}
|
||||||
const key = parts[0].toLowerCase();
|
switch (parts[0]) {
|
||||||
const value = parts[1];
|
|
||||||
switch (key) {
|
|
||||||
case 'latest': {
|
case 'latest': {
|
||||||
flavor.latest = value;
|
flavor.latest = parts[1];
|
||||||
if (!['auto', 'true', 'false'].includes(flavor.latest)) {
|
if (!['auto', 'true', 'false'].includes(flavor.latest)) {
|
||||||
throw new Error(`Invalid latest flavor entry: ${input}`);
|
throw new Error(`Invalid latest flavor entry: ${input}`);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'prefix': {
|
case 'prefix': {
|
||||||
flavor.prefix = value;
|
flavor.prefix = parts[1];
|
||||||
onlatestfor = 'prefix';
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'suffix': {
|
case 'suffix': {
|
||||||
flavor.suffix = value;
|
flavor.suffix = parts[1];
|
||||||
onlatestfor = 'suffix';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 'onlatest': {
|
|
||||||
if (!['true', 'false'].includes(value)) {
|
|
||||||
throw new Error(`Invalid value for onlatest attribute: ${value}`);
|
|
||||||
}
|
|
||||||
switch (onlatestfor) {
|
|
||||||
case 'prefix': {
|
|
||||||
flavor.prefixLatest = /true/i.test(value);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 'suffix': {
|
|
||||||
flavor.suffixLatest = /true/i.test(value);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
throw new Error(`Unknown flavor entry: ${input}`);
|
throw new Error(`Unknown entry: ${input}`);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -78,9 +43,7 @@ export function Transform(inputs: string[]): Flavor {
|
|||||||
core.startGroup(`Processing flavor input`);
|
core.startGroup(`Processing flavor input`);
|
||||||
core.info(`latest=${flavor.latest}`);
|
core.info(`latest=${flavor.latest}`);
|
||||||
core.info(`prefix=${flavor.prefix}`);
|
core.info(`prefix=${flavor.prefix}`);
|
||||||
core.info(`prefixLatest=${flavor.prefixLatest}`);
|
|
||||||
core.info(`suffix=${flavor.suffix}`);
|
core.info(`suffix=${flavor.suffix}`);
|
||||||
core.info(`suffixLatest=${flavor.suffixLatest}`);
|
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
|
|
||||||
return flavor;
|
return flavor;
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user