Compare commits
99 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
12cce9efe0 | ||
|
f17e188860 | ||
|
210d783f42 | ||
|
5f26473e44 | ||
|
49e79e3532 | ||
|
5ebec4fd21 | ||
|
8ed470c7f1 | ||
|
61ddee1921 | ||
|
8671a4f8ec | ||
|
3862a1b70f | ||
|
f7c31b1e79 | ||
|
55b0d953e7 | ||
|
4c6a2cafd0 | ||
|
6c51f019f8 | ||
|
5c9aa83b20 | ||
|
30af4d7327 | ||
|
594a555a35 | ||
|
7fa87ab51a | ||
|
02d1a10cce | ||
|
58061722cc | ||
|
1c9aacf050 | ||
|
1f87faac28 | ||
|
59bc9ddfd5 | ||
|
286660a061 | ||
|
139c7584e2 | ||
|
ee266832e5 | ||
|
ae052be62f | ||
|
98045504c7 | ||
|
97c170d70b | ||
|
44ecceaf69 | ||
|
e4d14b2070 | ||
|
f66710ef6c | ||
|
d6cc766711 | ||
|
9c37b1c855 | ||
|
e518b0e7bb | ||
|
7bf589e898 | ||
|
bc6cb60a8a | ||
|
4db6eea5ea | ||
|
b5ee2f25f6 | ||
|
8d56fe93cf | ||
|
59267481d9 | ||
|
69f6fc9d46 | ||
|
2f5b5ae8bf | ||
|
f206c36955 | ||
|
a20adfa74e | ||
|
26b9439ce3 | ||
|
467883f452 | ||
|
5edf56f2c4 | ||
|
678218f2be | ||
|
e44c1fbe6e | ||
|
b2391d37b4 | ||
|
2f4dd1462a | ||
|
a5680a6642 | ||
|
be6d2cc1df | ||
|
0a72be43da | ||
|
72fe50e2af | ||
|
aca951f8f5 | ||
|
0978a0678a | ||
|
c2905fbd8c | ||
|
7d7a22a682 | ||
|
89bf6c030f | ||
|
e1a45f6e54 | ||
|
535130561a | ||
|
4b640abb3a | ||
|
b7ad32e4f5 | ||
|
2a96a96c9c | ||
|
a3ea951e65 | ||
|
476e707f24 | ||
|
e29c9db4aa | ||
|
7fa3798e58 | ||
|
ba827041a4 | ||
|
0950af0d7c | ||
|
5f62bc0532 | ||
|
d0dafecc74 | ||
|
f2a13332ac | ||
|
56b3641ca3 | ||
|
6738eba24d | ||
|
0d161f4ba7 | ||
|
0504cbc543 | ||
|
0569027ca5 | ||
|
04da149653 | ||
|
2f5d0666ec | ||
|
776adc0187 | ||
|
96b9d26bf5 | ||
|
1237c3e3d6 | ||
|
e99ab50e6c | ||
|
47c365107c | ||
|
f3476d2252 | ||
|
c6cd4388a1 | ||
|
9b5093b231 | ||
|
5485056c35 | ||
|
51c741cfbc | ||
|
14422d356e | ||
|
1068b75f65 | ||
|
a66dbeb1e8 | ||
|
f3c886e26b | ||
|
535a299de5 | ||
|
2cad85de24 | ||
|
5949fa2b94 |
23
.eslintrc.json
Normal file
23
.eslintrc.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"node": true,
|
||||||
|
"es2021": true,
|
||||||
|
"jest/globals": true
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"eslint:recommended",
|
||||||
|
"plugin:@typescript-eslint/recommended",
|
||||||
|
"plugin:jest/recommended",
|
||||||
|
"plugin:prettier/recommended"
|
||||||
|
],
|
||||||
|
"parser": "@typescript-eslint/parser",
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": "latest",
|
||||||
|
"sourceType": "module"
|
||||||
|
},
|
||||||
|
"plugins": [
|
||||||
|
"@typescript-eslint",
|
||||||
|
"jest",
|
||||||
|
"prettier"
|
||||||
|
]
|
||||||
|
}
|
97
.github/workflows/ci.yml
vendored
97
.github/workflows/ci.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -81,7 +81,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -109,7 +109,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -134,7 +134,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -146,12 +146,27 @@ jobs:
|
|||||||
prefix=foo-
|
prefix=foo-
|
||||||
suffix=-bar
|
suffix=-bar
|
||||||
|
|
||||||
|
images:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
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/') }}
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -165,12 +180,33 @@ jobs:
|
|||||||
org.opencontainers.image.description=this is a "good" example
|
org.opencontainers.image.description=this is a "good" example
|
||||||
org.opencontainers.image.vendor=MyCompany
|
org.opencontainers.image.vendor=MyCompany
|
||||||
|
|
||||||
|
global-exps:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: Docker meta
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
images: |
|
||||||
|
${{ env.DOCKER_IMAGE }}
|
||||||
|
ghcr.io/name/app
|
||||||
|
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:
|
json:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
@@ -199,13 +235,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
images: ${{ env.DOCKER_IMAGE }}
|
images: |
|
||||||
|
${{ env.DOCKER_IMAGE }}
|
||||||
tags: |
|
tags: |
|
||||||
type=schedule
|
type=schedule
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
@@ -217,15 +254,15 @@ jobs:
|
|||||||
type=sha
|
type=sha
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
with:
|
with:
|
||||||
driver-opts: network=host
|
driver-opts: network=host
|
||||||
-
|
-
|
||||||
name: Build and push to local registry
|
name: Build and push to local registry
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: ./test
|
context: ./test
|
||||||
file: ./test/Dockerfile
|
file: ./test/Dockerfile
|
||||||
@@ -252,7 +289,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
@@ -272,16 +309,44 @@ jobs:
|
|||||||
type=sha
|
type=sha
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/bake-action@v1
|
uses: docker/bake-action@v2
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
./test/docker-bake.hcl
|
./test/docker-bake.hcl
|
||||||
${{ steps.docker_meta.outputs.bake-file }}
|
${{ steps.docker_meta.outputs.bake-file }}
|
||||||
targets: |
|
targets: |
|
||||||
release
|
release
|
||||||
|
|
||||||
|
sep-tags:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sep:
|
||||||
|
- " "
|
||||||
|
- ","
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
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@v6
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
console.log(`${{ steps.meta.outputs.tags }}`);
|
||||||
|
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@@ -16,19 +16,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Validate
|
name: Validate
|
||||||
uses: docker/bake-action@v1
|
uses: docker/bake-action@v2
|
||||||
with:
|
with:
|
||||||
targets: validate
|
targets: validate
|
||||||
-
|
-
|
||||||
name: Test
|
name: Test
|
||||||
uses: docker/bake-action@v1
|
uses: docker/bake-action@v2
|
||||||
with:
|
with:
|
||||||
targets: test
|
targets: test
|
||||||
-
|
-
|
||||||
name: Upload coverage
|
name: Upload coverage
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
file: ./coverage/clover.xml
|
file: ./coverage/clover.xml
|
||||||
|
332
README.md
332
README.md
@@ -5,8 +5,9 @@
|
|||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
GitHub Action to extract metadata from Git reference and GitHub events.
|
GitHub Action to extract metadata from Git reference and GitHub events. This action
|
||||||
This action is particularly useful if used with [Docker Build Push](https://github.com/docker/build-push-action) action to tag and label Docker images.
|
is particularly useful if used with [Docker Build Push](https://github.com/docker/build-push-action)
|
||||||
|
action to tag and label Docker images.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -19,6 +20,7 @@ ___
|
|||||||
* [Customizing](#customizing)
|
* [Customizing](#customizing)
|
||||||
* [inputs](#inputs)
|
* [inputs](#inputs)
|
||||||
* [outputs](#outputs)
|
* [outputs](#outputs)
|
||||||
|
* [`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)
|
||||||
@@ -30,12 +32,20 @@ ___
|
|||||||
* [`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)
|
||||||
* [Global expressions](#global-expressions)
|
* [Global expressions](#global-expressions)
|
||||||
|
* [`{{branch}}`](#branch)
|
||||||
|
* [`{{tag}}`](#tag)
|
||||||
|
* [`{{sha}}`](#sha)
|
||||||
|
* [`{{base_ref}}`](#base_ref)
|
||||||
|
* [`{{is_default_branch}}`](#is_default_branch)
|
||||||
|
* [`{{date '<format>'}}`](#date-format)
|
||||||
* [Major version zero](#major-version-zero)
|
* [Major version zero](#major-version-zero)
|
||||||
* [JSON output object](#json-output-object)
|
* [JSON output object](#json-output-object)
|
||||||
* [Overwrite labels](#overwrite-labels)
|
* [Overwrite labels](#overwrite-labels)
|
||||||
* [Keep up-to-date with GitHub Dependabot](#keep-up-to-date-with-github-dependabot)
|
* [Contributing](#contributing)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -45,6 +55,7 @@ ___
|
|||||||
name: ci
|
name: ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
@@ -60,23 +71,23 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v4
|
||||||
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@v1
|
uses: docker/login-action@v2
|
||||||
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@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
@@ -85,12 +96,13 @@ 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
|
||||||
|
|
||||||
@@ -113,13 +125,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: name/app
|
images: |
|
||||||
|
name/app
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
@@ -128,13 +141,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@v1
|
uses: docker/login-action@v2
|
||||||
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@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
@@ -153,8 +166,8 @@ 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 declare an empty target named
|
[Docker Bake action](https://github.com/docker/bake-action). You just have to
|
||||||
`docker-metadata-action` and inherit from it.
|
declare an empty target named `docker-metadata-action` and inherit from it.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
// docker-bake.hcl
|
// docker-bake.hcl
|
||||||
@@ -190,13 +203,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: name/app
|
images: |
|
||||||
|
name/app
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
@@ -205,7 +219,7 @@ jobs:
|
|||||||
type=sha
|
type=sha
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/bake-action@v1
|
uses: docker/bake-action@v2
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
./docker-bake.hcl
|
./docker-bake.hcl
|
||||||
@@ -213,7 +227,8 @@ jobs:
|
|||||||
targets: build
|
targets: build
|
||||||
```
|
```
|
||||||
|
|
||||||
Content of `${{ steps.meta.outputs.bake-file }}` file will look like this with `refs/tags/v1.2.3` ref:
|
Content of `${{ steps.meta.outputs.bake-file }}` file will look like this with
|
||||||
|
`refs/tags/v1.2.3` ref:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@@ -232,7 +247,7 @@ Content of `${{ steps.meta.outputs.bake-file }}` file will look like this with `
|
|||||||
"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": "90dd6032fac8bda1b6c4436a2e65de27961ed071",
|
"org.opencontainers.image.revision": "860c1904a1ce19322e91ac35af1ab07466440c37",
|
||||||
"org.opencontainers.image.licenses": "MIT"
|
"org.opencontainers.image.licenses": "MIT"
|
||||||
},
|
},
|
||||||
"args": {
|
"args": {
|
||||||
@@ -258,14 +273,9 @@ 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 |
|
||||||
|---------------------|----------|------------------------------------|
|
|---------------------|--------|----------------------------------------------------------|
|
||||||
| `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 |
|
||||||
@@ -278,12 +288,35 @@ Following inputs can be used as `step.with` keys
|
|||||||
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 |
|
||||||
| `json` | String | JSON output of tags and labels |
|
| `json` | String | JSON output of tags and labels |
|
||||||
| `bake-file` | File | [Bake definition file](https://github.com/docker/buildx#file-definition) path |
|
| `bake-file` | File | [Bake file definition](https://docs.docker.com/build/customize/bake/file-definition/) path |
|
||||||
|
|
||||||
|
## `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`)
|
||||||
|
|
||||||
## `flavor` input
|
## `flavor` input
|
||||||
|
|
||||||
@@ -297,13 +330,16 @@ 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 tag and optionally for `latest`
|
* `prefix=<string>,onlatest=<true|false>`: A global prefix for each generated
|
||||||
* `suffix=<string>,onlatest=<true|false>`: A global suffix for each generated tag and optionally for `latest`
|
tag and optionally for `latest`
|
||||||
|
* `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 reflect the output metadata. This one is in
|
`tags` is the core input of this action as everything related to it will
|
||||||
the form of a key-value pair list in CSV format to remove limitations intrinsically linked to GitHub Actions
|
reflect the output metadata. This one is in the form of a key-value pair list
|
||||||
|
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
|
||||||
@@ -331,7 +367,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>` priority to manage the order of tags
|
* `priority=<number>` set tag [priority](#priority-attribute) order
|
||||||
* `prefix=<string>` add prefix
|
* `prefix=<string>` add prefix
|
||||||
* `suffix=<string>` add suffix
|
* `suffix=<string>` add suffix
|
||||||
|
|
||||||
@@ -357,10 +393,11 @@ tags: |
|
|||||||
type=schedule,pattern={{date 'YYYYMMDD'}}
|
type=schedule,pattern={{date 'YYYYMMDD'}}
|
||||||
```
|
```
|
||||||
|
|
||||||
Will be used on [schedule event](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#schedule).
|
Will be used on [schedule event](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule).
|
||||||
|
|
||||||
|
`pattern` is a specially crafted attribute to support [Handlebars' template](https://handlebarsjs.com/guide/)
|
||||||
|
with the following expressions:
|
||||||
|
|
||||||
`pattern` is a specially crafted attribute to support [Handlebars template](https://handlebarsjs.com/guide/) with
|
|
||||||
the following expressions:
|
|
||||||
* `date 'format'` ; render date by its [moment format](https://momentjs.com/docs/#/displaying/format/)
|
* `date 'format'` ; render date by its [moment format](https://momentjs.com/docs/#/displaying/format/)
|
||||||
|
|
||||||
| Pattern | Output |
|
| Pattern | Output |
|
||||||
@@ -385,11 +422,13 @@ 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/reference/events-that-trigger-workflows#push)
|
Will be used on a [push tag event](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push)
|
||||||
and requires a valid [semver](https://semver.org/) Git tag, but you can also use a custom value through `value`
|
and requires a valid [semver](https://semver.org/) Git tag, but you can also
|
||||||
attribute.
|
use a custom value through `value` attribute.
|
||||||
|
|
||||||
|
`pattern` attribute supports [Handlebars template](https://handlebarsjs.com/guide/)
|
||||||
|
with the following expressions:
|
||||||
|
|
||||||
`pattern` attribute supports [Handlebars template](https://handlebarsjs.com/guide/) with the following expressions:
|
|
||||||
* `raw` ; the actual tag
|
* `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
|
||||||
@@ -408,9 +447,10 @@ attribute.
|
|||||||
| `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}}` if specified) as tag
|
> *Pre-release (rc, beta, alpha) will only extend `{{version}}` (or `{{raw}}`
|
||||||
> because they are updated frequently, and contain many breaking changes that are (by the author's design)
|
> if specified) as tag because they are updated frequently, and contain many
|
||||||
> 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:
|
||||||
|
|
||||||
@@ -429,11 +469,13 @@ tags: |
|
|||||||
type=pep440,pattern={{version}},value=1.0.0
|
type=pep440,pattern={{version}},value=1.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Will be used on a [push tag event](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push)
|
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
|
and requires a Git tag that conforms to [PEP 440](https://www.python.org/dev/peps/pep-0440/),
|
||||||
custom value through `value` attribute.
|
but you can also use a custom value through `value` attribute.
|
||||||
|
|
||||||
|
`pattern` attribute supports [Handlebars template](https://handlebarsjs.com/guide/)
|
||||||
|
with the following expressions:
|
||||||
|
|
||||||
`pattern` attribute supports [Handlebars template](https://handlebarsjs.com/guide/) with the following expressions:
|
|
||||||
* `raw` ; the actual tag
|
* `raw` ; the actual tag
|
||||||
* `version` ; cleaned version
|
* `version` ; cleaned version
|
||||||
* `major` ; major version identifier
|
* `major` ; major version identifier
|
||||||
@@ -454,9 +496,10 @@ custom value through `value` attribute.
|
|||||||
| `1.2.3beta2` | `{{major}}.{{minor}}` | `1.2.3b2`* |
|
| `1.2.3beta2` | `{{major}}.{{minor}}` | `1.2.3b2`* |
|
||||||
| `1.0dev4` | `{{major}}.{{minor}}` | `1.0.dev4`* |
|
| `1.0dev4` | `{{major}}.{{minor}}` | `1.0.dev4`* |
|
||||||
|
|
||||||
> *dev/pre/post release will only extend `{{version}}` (or `{{raw}}` if specified) as tag
|
> *dev/pre/post release will only extend `{{version}}` (or `{{raw}}` if
|
||||||
> because they are updated frequently, and contain many breaking changes that are (by the author's design)
|
> specified) as tag because they are updated frequently, and contain many
|
||||||
> 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:
|
||||||
|
|
||||||
@@ -477,17 +520,17 @@ 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 capturing group. Will be used on a
|
Can create a regular expression for matching Git tag with a pattern and
|
||||||
[push tag event](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push) but you can also use
|
capturing group. Will be used on a [push tag event](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push)
|
||||||
a custom value through `value` attribute.
|
but, you can also use 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` |
|
| `p1/v1.2.3` | `p1/v(\d.\d.\d)` | `1` | `1.2.3` |
|
||||||
|
|
||||||
Extended attributes and default values:
|
Extended attributes and default values:
|
||||||
|
|
||||||
@@ -506,9 +549,9 @@ tags: |
|
|||||||
type=edge,branch=main
|
type=edge,branch=main
|
||||||
```
|
```
|
||||||
|
|
||||||
An `edge` tag reflects the last commit of the active branch on your Git repository. I usually prefer to use `edge`
|
An `edge` tag reflects the last commit of the active branch on your Git
|
||||||
as a Docker tag for a better distinction or common pattern. This is also used by official images
|
repository. I usually prefer to use `edge` as a Docker tag for a better
|
||||||
like [Alpine](https://hub.docker.com/_/alpine).
|
distinction or common pattern. This is also used by official images like [Alpine](https://hub.docker.com/_/alpine).
|
||||||
|
|
||||||
Extended attributes and default values:
|
Extended attributes and default values:
|
||||||
|
|
||||||
@@ -530,17 +573,19 @@ tags: |
|
|||||||
```
|
```
|
||||||
|
|
||||||
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:
|
||||||
|
|
||||||
@@ -598,25 +643,71 @@ tags: |
|
|||||||
|
|
||||||
## 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 generated by default (`auto` mode) for:
|
`latest` tag is handled through the [`flavor` input](#flavor-input). It will be
|
||||||
|
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=match,pattern=...`](#typematch)
|
* [`type=match,pattern=...`](#typematch)
|
||||||
|
|
||||||
|
For conditionally tagging with latest for a specific branch name, e.g. if your
|
||||||
|
default branch name is not `master`, use `type=raw` with a boolean expression:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
tags: |
|
||||||
|
# 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
|
### Global expressions
|
||||||
|
|
||||||
The following [Handlebars template](https://handlebarsjs.com/guide/) expressions for `prefix`, `suffix` and `value`
|
The following [Handlebars' template](https://handlebarsjs.com/guide/) expressions
|
||||||
attributes are available:
|
for `prefix`, `suffix`, `value` and `enable` attributes are available:
|
||||||
|
|
||||||
| Expression | Output |
|
|
||||||
|--------------------------|----------------------|
|
|
||||||
| `{{branch}}` | `master` |
|
|
||||||
| `{{tag}}` | `v1.2.3` |
|
|
||||||
| `{{sha}}` | `90dd603` |
|
|
||||||
| `{{base_ref}}` | `master` |
|
|
||||||
| `{{date 'YYYYMMDD'}}` | `20210326` |
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
tags: |
|
tags: |
|
||||||
@@ -626,13 +717,73 @@ tags: |
|
|||||||
type=raw,value=mytag-{{branch}}-{{sha}}
|
type=raw,value=mytag-{{branch}}-{{sha}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### `{{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>'}}`
|
||||||
|
|
||||||
|
Returns the current date rendered by its [moment format](https://momentjs.com/docs/#/displaying/format/).
|
||||||
|
|
||||||
|
| Expression | Output example |
|
||||||
|
|--------------------------------------------|-----------------------------------------|
|
||||||
|
| `{{date 'YYYYMMDD'}}` | `20200110` |
|
||||||
|
| `{{date 'dddd, MMMM Do YYYY, h:mm:ss a'}}` | `Friday, January 10th 2020, 3:25:50 pm` |
|
||||||
|
|
||||||
### Major version zero
|
### Major version zero
|
||||||
|
|
||||||
Major version zero (`0.y.z`) is for initial development and **may** change at any time. This means the public API
|
Major version zero (`0.y.z`) is for initial development and **may** change at
|
||||||
[**should not** be considered stable](https://semver.org/#spec-item-4).
|
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}}`
|
In this case, Docker tag `0` **should not** be generated if you're using [`type=semver`](#typesemver)
|
||||||
pattern. You can manage this behavior like this:
|
with `{{major}}` pattern. You can manage this behavior like this:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# refs/tags/v0.1.2
|
# refs/tags/v0.1.2
|
||||||
@@ -647,19 +798,19 @@ tags: |
|
|||||||
|
|
||||||
### JSON output object
|
### 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
|
The `json` output is a JSON object composed of the generated tags and labels so
|
||||||
workflow using the [`fromJSON` function](https://docs.github.com/en/actions/learn-github-actions/expressions#fromjson):
|
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@v3
|
uses: docker/metadata-action@v4
|
||||||
id: meta
|
id: meta
|
||||||
with:
|
with:
|
||||||
images: name/app
|
images: name/app
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
@@ -671,14 +822,14 @@ workflow using the [`fromJSON` function](https://docs.github.com/en/actions/lear
|
|||||||
|
|
||||||
### Overwrite labels
|
### Overwrite labels
|
||||||
|
|
||||||
If some of the [OCI Image Format Specification](https://github.com/opencontainers/image-spec/blob/master/annotations.md)
|
If some [OCI Image Format Specification](https://github.com/opencontainers/image-spec/blob/master/annotations.md)
|
||||||
labels generated are not suitable, you can overwrite them like this:
|
labels generated are not suitable, you can overwrite them like this:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: name/app
|
images: name/app
|
||||||
labels: |
|
labels: |
|
||||||
@@ -688,18 +839,7 @@ labels generated are not suitable, you can overwrite them like this:
|
|||||||
org.opencontainers.image.vendor=MyCompany
|
org.opencontainers.image.vendor=MyCompany
|
||||||
```
|
```
|
||||||
|
|
||||||
## Keep up-to-date with GitHub Dependabot
|
## Contributing
|
||||||
|
|
||||||
Since [Dependabot](https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-github-dependabot)
|
Want to contribute? Awesome! You can find information about contributing to
|
||||||
has [native GitHub Actions support](https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#package-ecosystem),
|
this project in the [CONTRIBUTING.md](/.github/CONTRIBUTING.md)
|
||||||
to enable it on your GitHub repo all you need to do is add the `.github/dependabot.yml` file:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
# Maintain dependencies for GitHub Actions
|
|
||||||
- package-ecosystem: "github-actions"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
```
|
|
||||||
|
31
UPGRADE.md
31
UPGRADE.md
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
## v2 to v3
|
## v2 to v3
|
||||||
|
|
||||||
* Repository has been moved to docker org. Replace `crazy-max/ghaction-docker-meta@v2` with `docker/metadata-action@v3`
|
* Repository has been moved to docker org. Replace `crazy-max/ghaction-docker-meta@v2`
|
||||||
|
with `docker/metadata-action@v4`
|
||||||
* The default bake target has been changed: `ghaction-docker-meta` > `docker-metadata-action`
|
* The default bake target has been changed: `ghaction-docker-meta` > `docker-metadata-action`
|
||||||
|
|
||||||
## v1 to v2
|
## v1 to v2
|
||||||
@@ -132,7 +133,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
@@ -142,13 +143,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@v1
|
uses: docker/login-action@v2
|
||||||
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@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
@@ -176,23 +177,23 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v4
|
||||||
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@v1
|
uses: docker/login-action@v2
|
||||||
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@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
@@ -222,7 +223,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
@@ -235,13 +236,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@v1
|
uses: docker/login-action@v2
|
||||||
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@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
@@ -269,11 +270,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: name/app
|
images: name/app
|
||||||
tags: |
|
tags: |
|
||||||
@@ -284,13 +285,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@v1
|
uses: docker/login-action@v2
|
||||||
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@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
import {describe, expect, it, jest} from '@jest/globals';
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as os from 'os';
|
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
|
|
||||||
import * as context from '../src/context';
|
import * as context from '../src/context';
|
||||||
@@ -15,55 +15,61 @@ jest.spyOn(context, 'tmpDir').mockImplementation((): string => {
|
|||||||
describe('getInputList', () => {
|
describe('getInputList', () => {
|
||||||
it('single line correctly', async () => {
|
it('single line correctly', async () => {
|
||||||
await setInput('foo', 'bar');
|
await setInput('foo', 'bar');
|
||||||
const res = await context.getInputList('foo');
|
const res = context.getInputList('foo');
|
||||||
expect(res).toEqual(['bar']);
|
expect(res).toEqual(['bar']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('multiline correctly', async () => {
|
it('multiline correctly', async () => {
|
||||||
setInput('foo', 'bar\nbaz');
|
setInput('foo', 'bar\nbaz');
|
||||||
const res = await context.getInputList('foo');
|
const res = context.getInputList('foo');
|
||||||
expect(res).toEqual(['bar', 'baz']);
|
expect(res).toEqual(['bar', 'baz']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('empty lines correctly', async () => {
|
it('empty lines correctly', async () => {
|
||||||
setInput('foo', 'bar\n\nbaz');
|
setInput('foo', 'bar\n\nbaz');
|
||||||
const res = await context.getInputList('foo');
|
const res = context.getInputList('foo');
|
||||||
expect(res).toEqual(['bar', 'baz']);
|
expect(res).toEqual(['bar', 'baz']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('comment correctly', async () => {
|
||||||
|
setInput('foo', 'bar\n#com\n"#taken"\nhello#comment\nbaz');
|
||||||
|
const res = context.getInputList('foo');
|
||||||
|
expect(res).toEqual(['bar', '#taken', 'hello', 'baz']);
|
||||||
|
});
|
||||||
|
|
||||||
it('comma correctly', async () => {
|
it('comma correctly', async () => {
|
||||||
setInput('foo', 'bar,baz');
|
setInput('foo', 'bar,baz');
|
||||||
const res = await context.getInputList('foo');
|
const res = context.getInputList('foo');
|
||||||
expect(res).toEqual(['bar', 'baz']);
|
expect(res).toEqual(['bar', 'baz']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('empty result correctly', async () => {
|
it('empty result correctly', async () => {
|
||||||
setInput('foo', 'bar,baz,');
|
setInput('foo', 'bar,baz,');
|
||||||
const res = await context.getInputList('foo');
|
const res = context.getInputList('foo');
|
||||||
expect(res).toEqual(['bar', 'baz']);
|
expect(res).toEqual(['bar', 'baz']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('different new lines correctly', async () => {
|
it('different new lines correctly', async () => {
|
||||||
setInput('foo', 'bar\r\nbaz');
|
setInput('foo', 'bar\r\nbaz');
|
||||||
const res = await context.getInputList('foo');
|
const res = context.getInputList('foo');
|
||||||
expect(res).toEqual(['bar', 'baz']);
|
expect(res).toEqual(['bar', 'baz']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('different new lines and comma correctly', async () => {
|
it('different new lines and comma correctly', async () => {
|
||||||
setInput('foo', 'bar\r\nbaz,bat');
|
setInput('foo', 'bar\r\nbaz,bat');
|
||||||
const res = await context.getInputList('foo');
|
const res = context.getInputList('foo');
|
||||||
expect(res).toEqual(['bar', 'baz', 'bat']);
|
expect(res).toEqual(['bar', 'baz', 'bat']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('multiline and ignoring comma correctly', async () => {
|
it('multiline and ignoring comma correctly', async () => {
|
||||||
setInput('cache-from', 'user/app:cache\ntype=local,src=path/to/dir');
|
setInput('cache-from', 'user/app:cache\ntype=local,src=path/to/dir');
|
||||||
const res = await context.getInputList('cache-from', true);
|
const res = context.getInputList('cache-from', true);
|
||||||
expect(res).toEqual(['user/app:cache', 'type=local,src=path/to/dir']);
|
expect(res).toEqual(['user/app:cache', 'type=local,src=path/to/dir']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('different new lines and ignoring comma correctly', async () => {
|
it('different new lines and ignoring comma correctly', async () => {
|
||||||
setInput('cache-from', 'user/app:cache\r\ntype=local,src=path/to/dir');
|
setInput('cache-from', 'user/app:cache\r\ntype=local,src=path/to/dir');
|
||||||
const res = await context.getInputList('cache-from', true);
|
const res = context.getInputList('cache-from', true);
|
||||||
expect(res).toEqual(['user/app:cache', 'type=local,src=path/to/dir']);
|
expect(res).toEqual(['user/app:cache', 'type=local,src=path/to/dir']);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -76,7 +82,7 @@ bbbbbbb
|
|||||||
ccccccccc"
|
ccccccccc"
|
||||||
FOO=bar`
|
FOO=bar`
|
||||||
);
|
);
|
||||||
const res = await context.getInputList('secrets', true);
|
const res = context.getInputList('secrets', true);
|
||||||
expect(res).toEqual([
|
expect(res).toEqual([
|
||||||
'GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789',
|
'GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789',
|
||||||
`MYSECRET=aaaaaaaa
|
`MYSECRET=aaaaaaaa
|
||||||
@@ -99,7 +105,7 @@ FOO=bar
|
|||||||
bbbb
|
bbbb
|
||||||
ccc"`
|
ccc"`
|
||||||
);
|
);
|
||||||
const res = await context.getInputList('secrets', true);
|
const res = context.getInputList('secrets', true);
|
||||||
expect(res).toEqual([
|
expect(res).toEqual([
|
||||||
'GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789',
|
'GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789',
|
||||||
`MYSECRET=aaaaaaaa
|
`MYSECRET=aaaaaaaa
|
||||||
@@ -122,7 +128,7 @@ bbbbbbb
|
|||||||
ccccccccc
|
ccccccccc
|
||||||
FOO=bar`
|
FOO=bar`
|
||||||
);
|
);
|
||||||
const res = await context.getInputList('secrets', true);
|
const res = context.getInputList('secrets', true);
|
||||||
expect(res).toEqual(['GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789', 'MYSECRET=aaaaaaaa', 'bbbbbbb', 'ccccccccc', 'FOO=bar']);
|
expect(res).toEqual(['GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789', 'MYSECRET=aaaaaaaa', 'bbbbbbb', 'ccccccccc', 'FOO=bar']);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -135,11 +141,11 @@ bbbb""bbb
|
|||||||
ccccccccc"
|
ccccccccc"
|
||||||
FOO=bar`
|
FOO=bar`
|
||||||
);
|
);
|
||||||
const res = await context.getInputList('secrets', true);
|
const res = context.getInputList('secrets', true);
|
||||||
expect(res).toEqual([
|
expect(res).toEqual([
|
||||||
'GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789',
|
'GIT_AUTH_TOKEN=abcdefgh,ijklmno=0123456789',
|
||||||
`MYSECRET=aaaaaaaa
|
`MYSECRET=aaaaaaaa
|
||||||
bbbb\"bbb
|
bbbb"bbb
|
||||||
ccccccccc`,
|
ccccccccc`,
|
||||||
'FOO=bar'
|
'FOO=bar'
|
||||||
]);
|
]);
|
||||||
@@ -159,27 +165,6 @@ describe('asyncForEach', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('setOutput', () => {
|
|
||||||
beforeEach(() => {
|
|
||||||
process.stdout.write = jest.fn();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('setOutput produces the correct command', () => {
|
|
||||||
context.setOutput('some output', 'some value');
|
|
||||||
assertWriteCalls([`::set-output name=some output::some value${os.EOL}`]);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('setOutput handles bools', () => {
|
|
||||||
context.setOutput('some output', false);
|
|
||||||
assertWriteCalls([`::set-output name=some output::false${os.EOL}`]);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('setOutput handles numbers', () => {
|
|
||||||
context.setOutput('some output', 1.01);
|
|
||||||
assertWriteCalls([`::set-output name=some output::1.01${os.EOL}`]);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// See: https://github.com/actions/toolkit/blob/master/packages/core/src/core.ts#L67
|
// See: https://github.com/actions/toolkit/blob/master/packages/core/src/core.ts#L67
|
||||||
function getInputName(name: string): string {
|
function getInputName(name: string): string {
|
||||||
return `INPUT_${name.replace(/ /g, '_').toUpperCase()}`;
|
return `INPUT_${name.replace(/ /g, '_').toUpperCase()}`;
|
||||||
@@ -188,11 +173,3 @@ function getInputName(name: string): string {
|
|||||||
function setInput(name: string, value: string): void {
|
function setInput(name: string, value: string): void {
|
||||||
process.env[getInputName(name)] = value;
|
process.env[getInputName(name)] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assert that process.stdout.write calls called only with the given arguments.
|
|
||||||
function assertWriteCalls(calls: string[]): void {
|
|
||||||
expect(process.stdout.write).toHaveBeenCalledTimes(calls.length);
|
|
||||||
for (let i = 0; i < calls.length; i++) {
|
|
||||||
expect(process.stdout.write).toHaveBeenNthCalledWith(i + 1, calls[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
30
__tests__/fixtures/event_create_branch.env
Normal file
30
__tests__/fixtures/event_create_branch.env
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
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
|
145
__tests__/fixtures/event_create_branch.json
Normal file
145
__tests__/fixtures/event_create_branch.json
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
30
__tests__/fixtures/event_create_tag.env
Normal file
30
__tests__/fixtures/event_create_tag.env
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
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
|
145
__tests__/fixtures/event_create_tag.json
Normal file
145
__tests__/fixtures/event_create_tag.json
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
30
__tests__/fixtures/event_discussion_created.env
Normal file
30
__tests__/fixtures/event_discussion_created.env
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
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
|
205
__tests__/fixtures/event_discussion_created.json
Normal file
205
__tests__/fixtures/event_discussion_created.json
Normal file
@@ -0,0 +1,205 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
30
__tests__/fixtures/event_discussion_pinned.env
Normal file
30
__tests__/fixtures/event_discussion_pinned.env
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
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
|
205
__tests__/fixtures/event_discussion_pinned.json
Normal file
205
__tests__/fixtures/event_discussion_pinned.json
Normal file
@@ -0,0 +1,205 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
30
__tests__/fixtures/event_issue_opened.env
Normal file
30
__tests__/fixtures/event_issue_opened.env
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
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
|
200
__tests__/fixtures/event_issue_opened.json
Normal file
200
__tests__/fixtures/event_issue_opened.json
Normal file
@@ -0,0 +1,200 @@
|
|||||||
|
{
|
||||||
|
"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,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_e00a951d-2585-4fac-b085-459d80e69a2f
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_ca953e95-2f41-4926-bc52-a1c8d90e94c1
|
||||||
GITHUB_EVENT_NAME=pull_request
|
GITHUB_EVENT_NAME=pull_request
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_pull_request.json
|
GITHUB_EVENT_PATH=./__tests__/fixtures/event_pull_request.json
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
GITHUB_HEAD_REF=pr
|
GITHUB_HEAD_REF=test-pr
|
||||||
GITHUB_JOB=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_e00a951d-2585-4fac-b085-459d80e69a2f
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_ca953e95-2f41-4926-bc52-a1c8d90e94c1
|
||||||
GITHUB_REF=refs/pull/2/merge
|
GITHUB_REF=refs/pull/15/merge
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=15/merge
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=branch
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325972677
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=7
|
GITHUB_RUN_ID=2188688025
|
||||||
|
GITHUB_RUN_NUMBER=11
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=1e9249f05bfc090e0688b8fb9c1b347586add504
|
GITHUB_SHA=a9c8c5828b91be19d9728548b24759e352367ef1
|
||||||
GITHUB_WORKFLOW=event
|
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_ca953e95-2f41-4926-bc52-a1c8d90e94c1
|
||||||
|
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,35 +1,49 @@
|
|||||||
{
|
{
|
||||||
"action": "opened",
|
"action": "opened",
|
||||||
"number": 7,
|
"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": {
|
"pull_request": {
|
||||||
"_links": {
|
"_links": {
|
||||||
"comments": {
|
"comments": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/issues/7/comments"
|
"href": "https://api.github.com/repos/docker/test-docker-action/issues/15/comments"
|
||||||
},
|
},
|
||||||
"commits": {
|
"commits": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/7/commits"
|
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/15/commits"
|
||||||
},
|
},
|
||||||
"html": {
|
"html": {
|
||||||
"href": "https://github.com/crazy-max/test-docker-action/pull/7"
|
"href": "https://github.com/docker/test-docker-action/pull/15"
|
||||||
},
|
},
|
||||||
"issue": {
|
"issue": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/issues/7"
|
"href": "https://api.github.com/repos/docker/test-docker-action/issues/15"
|
||||||
},
|
},
|
||||||
"review_comment": {
|
"review_comment": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/comments{/number}"
|
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/comments{/number}"
|
||||||
},
|
},
|
||||||
"review_comments": {
|
"review_comments": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/7/comments"
|
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/15/comments"
|
||||||
},
|
},
|
||||||
"self": {
|
"self": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/7"
|
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/15"
|
||||||
},
|
},
|
||||||
"statuses": {
|
"statuses": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/statuses/0337b3a374a0b833cf127b9111ca8c5589d93616"
|
"href": "https://api.github.com/repos/docker/test-docker-action/statuses/3370e228f2209994d57af4427fe64e71bb79ac96"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active_lock_reason": null,
|
"active_lock_reason": null,
|
||||||
"additions": 0,
|
"additions": 1,
|
||||||
"assignee": null,
|
"assignee": null,
|
||||||
"assignees": [],
|
"assignees": [],
|
||||||
"author_association": "COLLABORATOR",
|
"author_association": "COLLABORATOR",
|
||||||
@@ -43,52 +57,53 @@
|
|||||||
"allow_merge_commit": true,
|
"allow_merge_commit": true,
|
||||||
"allow_rebase_merge": true,
|
"allow_rebase_merge": true,
|
||||||
"allow_squash_merge": true,
|
"allow_squash_merge": true,
|
||||||
"archive_url": "https://api.github.com/repos/crazy-max/test-docker-action/{archive_format}{/ref}",
|
"allow_update_branch": false,
|
||||||
|
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
||||||
"archived": false,
|
"archived": false,
|
||||||
"assignees_url": "https://api.github.com/repos/crazy-max/test-docker-action/assignees{/user}",
|
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
||||||
"blobs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/blobs{/sha}",
|
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
||||||
"branches_url": "https://api.github.com/repos/crazy-max/test-docker-action/branches{/branch}",
|
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
||||||
"clone_url": "https://github.com/crazy-max/test-docker-action.git",
|
"clone_url": "https://github.com/docker/test-docker-action.git",
|
||||||
"collaborators_url": "https://api.github.com/repos/crazy-max/test-docker-action/collaborators{/collaborator}",
|
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
||||||
"comments_url": "https://api.github.com/repos/crazy-max/test-docker-action/comments{/number}",
|
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
||||||
"commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/commits{/sha}",
|
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
||||||
"compare_url": "https://api.github.com/repos/crazy-max/test-docker-action/compare/{base}...{head}",
|
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
||||||
"contents_url": "https://api.github.com/repos/crazy-max/test-docker-action/contents/{+path}",
|
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
||||||
"contributors_url": "https://api.github.com/repos/crazy-max/test-docker-action/contributors",
|
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
"created_at": "2020-08-07T09:23:00Z",
|
||||||
"default_branch": "master",
|
"default_branch": "master",
|
||||||
"delete_branch_on_merge": false,
|
"delete_branch_on_merge": false,
|
||||||
"deployments_url": "https://api.github.com/repos/crazy-max/test-docker-action/deployments",
|
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
||||||
"description": "Test \"Docker\" Actions",
|
"description": "Test \"Docker\" Actions",
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
"downloads_url": "https://api.github.com/repos/crazy-max/test-docker-action/downloads",
|
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
||||||
"events_url": "https://api.github.com/repos/crazy-max/test-docker-action/events",
|
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
||||||
"fork": false,
|
"fork": false,
|
||||||
"forks": 1,
|
"forks": 1,
|
||||||
"forks_count": 1,
|
"forks_count": 1,
|
||||||
"forks_url": "https://api.github.com/repos/crazy-max/test-docker-action/forks",
|
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
||||||
"full_name": "docker/test-docker-action",
|
"full_name": "docker/test-docker-action",
|
||||||
"git_commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/commits{/sha}",
|
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
||||||
"git_refs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/refs{/sha}",
|
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
||||||
"git_tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/tags{/sha}",
|
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
||||||
"git_url": "git://github.com/crazy-max/test-docker-action.git",
|
"git_url": "git://github.com/docker/test-docker-action.git",
|
||||||
"has_downloads": true,
|
"has_downloads": true,
|
||||||
"has_issues": false,
|
"has_issues": true,
|
||||||
"has_pages": false,
|
"has_pages": false,
|
||||||
"has_projects": false,
|
"has_projects": true,
|
||||||
"has_wiki": false,
|
"has_wiki": true,
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"hooks_url": "https://api.github.com/repos/crazy-max/test-docker-action/hooks",
|
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
||||||
"html_url": "https://github.com/crazy-max/test-docker-action",
|
"html_url": "https://github.com/docker/test-docker-action",
|
||||||
"id": 285789493,
|
"id": 285789493,
|
||||||
"is_template": false,
|
"is_template": false,
|
||||||
"issue_comment_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/comments{/number}",
|
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
||||||
"issue_events_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/events{/number}",
|
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
||||||
"issues_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues{/number}",
|
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
||||||
"keys_url": "https://api.github.com/repos/crazy-max/test-docker-action/keys{/key_id}",
|
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
||||||
"labels_url": "https://api.github.com/repos/crazy-max/test-docker-action/labels{/name}",
|
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
||||||
"language": "JavaScript",
|
"language": "JavaScript",
|
||||||
"languages_url": "https://api.github.com/repos/crazy-max/test-docker-action/languages",
|
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
||||||
"license": {
|
"license": {
|
||||||
"key": "mit",
|
"key": "mit",
|
||||||
"name": "MIT License",
|
"name": "MIT License",
|
||||||
@@ -96,88 +111,88 @@
|
|||||||
"spdx_id": "MIT",
|
"spdx_id": "MIT",
|
||||||
"url": "https://api.github.com/licenses/mit"
|
"url": "https://api.github.com/licenses/mit"
|
||||||
},
|
},
|
||||||
"merges_url": "https://api.github.com/repos/crazy-max/test-docker-action/merges",
|
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
||||||
"milestones_url": "https://api.github.com/repos/crazy-max/test-docker-action/milestones{/number}",
|
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
||||||
"mirror_url": null,
|
"mirror_url": null,
|
||||||
"name": "test-docker-action",
|
"name": "test-docker-action",
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
||||||
"notifications_url": "https://api.github.com/repos/crazy-max/test-docker-action/notifications{?since,all,participating}",
|
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
||||||
"open_issues": 5,
|
"open_issues": 6,
|
||||||
"open_issues_count": 5,
|
"open_issues_count": 6,
|
||||||
"owner": {
|
"owner": {
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
"followers_url": "https://api.github.com/users/docker/followers",
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
||||||
"gravatar_id": "",
|
"gravatar_id": "",
|
||||||
"html_url": "https://github.com/crazy-max",
|
"html_url": "https://github.com/docker",
|
||||||
"id": 5429470,
|
"id": 5429470,
|
||||||
"login": "docker",
|
"login": "docker",
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/users",
|
"organizations_url": "https://api.github.com/users/docker/orgs",
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
"received_events_url": "https://api.github.com/users/docker/received_events",
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
"repos_url": "https://api.github.com/users/docker/repos",
|
||||||
"site_admin": false,
|
"site_admin": false,
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
||||||
"type": "Organization",
|
"type": "Organization",
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
"url": "https://api.github.com/users/docker"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"pulls_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls{/number}",
|
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
||||||
"pushed_at": "2021-10-21T21:44:34Z",
|
"pushed_at": "2022-04-19T09:04:50Z",
|
||||||
"releases_url": "https://api.github.com/repos/crazy-max/test-docker-action/releases{/id}",
|
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
||||||
"size": 714,
|
"size": 796,
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
||||||
"stargazers_count": 0,
|
"stargazers_count": 0,
|
||||||
"stargazers_url": "https://api.github.com/repos/crazy-max/test-docker-action/stargazers",
|
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
||||||
"statuses_url": "https://api.github.com/repos/crazy-max/test-docker-action/statuses/{sha}",
|
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
||||||
"subscribers_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscribers",
|
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
||||||
"subscription_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscription",
|
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
||||||
"svn_url": "https://github.com/crazy-max/test-docker-action",
|
"svn_url": "https://github.com/docker/test-docker-action",
|
||||||
"tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/tags",
|
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
||||||
"teams_url": "https://api.github.com/repos/crazy-max/test-docker-action/teams",
|
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
||||||
"topics": [],
|
"topics": [],
|
||||||
"trees_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/trees{/sha}",
|
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
||||||
"updated_at": "2021-10-21T21:44:37Z",
|
"updated_at": "2022-04-19T09:05:09Z",
|
||||||
"url": "https://api.github.com/repos/crazy-max/test-docker-action",
|
"url": "https://api.github.com/repos/docker/test-docker-action",
|
||||||
"visibility": "private",
|
"visibility": "private",
|
||||||
"watchers": 0,
|
"watchers": 0,
|
||||||
"watchers_count": 0
|
"watchers_count": 0
|
||||||
},
|
},
|
||||||
"sha": "ce1a91a20f9e2c064bcd76a7b95e091f831cf653",
|
"sha": "266574110acf203503badf966df2ea24b5d732d7",
|
||||||
"user": {
|
"user": {
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
"followers_url": "https://api.github.com/users/docker/followers",
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
||||||
"gravatar_id": "",
|
"gravatar_id": "",
|
||||||
"html_url": "https://github.com/crazy-max",
|
"html_url": "https://github.com/docker",
|
||||||
"id": 5429470,
|
"id": 5429470,
|
||||||
"login": "docker",
|
"login": "docker",
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/users",
|
"organizations_url": "https://api.github.com/users/docker/orgs",
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
"received_events_url": "https://api.github.com/users/docker/received_events",
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
"repos_url": "https://api.github.com/users/docker/repos",
|
||||||
"site_admin": false,
|
"site_admin": false,
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
||||||
"type": "Organization",
|
"type": "Organization",
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
"url": "https://api.github.com/users/docker"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"body": null,
|
"body": null,
|
||||||
"changed_files": 0,
|
"changed_files": 1,
|
||||||
"closed_at": null,
|
"closed_at": null,
|
||||||
"comments": 0,
|
"comments": 0,
|
||||||
"comments_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/7/comments",
|
"comments_url": "https://api.github.com/repos/docker/test-docker-action/issues/15/comments",
|
||||||
"commits": 1,
|
"commits": 1,
|
||||||
"commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/7/commits",
|
"commits_url": "https://api.github.com/repos/docker/test-docker-action/pulls/15/commits",
|
||||||
"created_at": "2021-10-21T21:46:27Z",
|
"created_at": "2022-04-19T09:16:17Z",
|
||||||
"deletions": 0,
|
"deletions": 1,
|
||||||
"diff_url": "https://github.com/crazy-max/test-docker-action/pull/7.diff",
|
"diff_url": "https://github.com/docker/test-docker-action/pull/15.diff",
|
||||||
"draft": false,
|
"draft": false,
|
||||||
"head": {
|
"head": {
|
||||||
"label": "crazy-max:test-pr",
|
"label": "crazy-max:test-pr",
|
||||||
@@ -188,6 +203,7 @@
|
|||||||
"allow_merge_commit": true,
|
"allow_merge_commit": true,
|
||||||
"allow_rebase_merge": true,
|
"allow_rebase_merge": true,
|
||||||
"allow_squash_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}",
|
"archive_url": "https://api.github.com/repos/crazy-max/test-docker-action/{archive_format}{/ref}",
|
||||||
"archived": false,
|
"archived": false,
|
||||||
"assignees_url": "https://api.github.com/repos/crazy-max/test-docker-action/assignees{/user}",
|
"assignees_url": "https://api.github.com/repos/crazy-max/test-docker-action/assignees{/user}",
|
||||||
@@ -232,7 +248,7 @@
|
|||||||
"issues_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues{/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}",
|
"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}",
|
"labels_url": "https://api.github.com/repos/crazy-max/test-docker-action/labels{/name}",
|
||||||
"language": "Dockerfile",
|
"language": "JavaScript",
|
||||||
"languages_url": "https://api.github.com/repos/crazy-max/test-docker-action/languages",
|
"languages_url": "https://api.github.com/repos/crazy-max/test-docker-action/languages",
|
||||||
"license": {
|
"license": {
|
||||||
"key": "mit",
|
"key": "mit",
|
||||||
@@ -260,7 +276,7 @@
|
|||||||
"id": 1951866,
|
"id": 1951866,
|
||||||
"login": "crazy-max",
|
"login": "crazy-max",
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/users",
|
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
||||||
"site_admin": false,
|
"site_admin": false,
|
||||||
@@ -271,7 +287,7 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"pulls_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls{/number}",
|
"pulls_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls{/number}",
|
||||||
"pushed_at": "2021-10-21T21:46:11Z",
|
"pushed_at": "2022-04-19T09:16:07Z",
|
||||||
"releases_url": "https://api.github.com/repos/crazy-max/test-docker-action/releases{/id}",
|
"releases_url": "https://api.github.com/repos/crazy-max/test-docker-action/releases{/id}",
|
||||||
"size": 151,
|
"size": 151,
|
||||||
"ssh_url": "git@github.com:crazy-max/test-docker-action.git",
|
"ssh_url": "git@github.com:crazy-max/test-docker-action.git",
|
||||||
@@ -285,13 +301,13 @@
|
|||||||
"teams_url": "https://api.github.com/repos/crazy-max/test-docker-action/teams",
|
"teams_url": "https://api.github.com/repos/crazy-max/test-docker-action/teams",
|
||||||
"topics": [],
|
"topics": [],
|
||||||
"trees_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/trees{/sha}",
|
"trees_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/trees{/sha}",
|
||||||
"updated_at": "2021-07-15T07:56:00Z",
|
"updated_at": "2022-04-19T09:13:10Z",
|
||||||
"url": "https://api.github.com/repos/crazy-max/test-docker-action",
|
"url": "https://api.github.com/repos/crazy-max/test-docker-action",
|
||||||
"visibility": "private",
|
"visibility": "private",
|
||||||
"watchers": 0,
|
"watchers": 0,
|
||||||
"watchers_count": 0
|
"watchers_count": 0
|
||||||
},
|
},
|
||||||
"sha": "0337b3a374a0b833cf127b9111ca8c5589d93616",
|
"sha": "3370e228f2209994d57af4427fe64e71bb79ac96",
|
||||||
"user": {
|
"user": {
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
||||||
@@ -303,7 +319,7 @@
|
|||||||
"id": 1951866,
|
"id": 1951866,
|
||||||
"login": "crazy-max",
|
"login": "crazy-max",
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/users",
|
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
||||||
"site_admin": false,
|
"site_admin": false,
|
||||||
@@ -313,9 +329,9 @@
|
|||||||
"url": "https://api.github.com/users/crazy-max"
|
"url": "https://api.github.com/users/crazy-max"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"html_url": "https://github.com/crazy-max/test-docker-action/pull/7",
|
"html_url": "https://github.com/docker/test-docker-action/pull/15",
|
||||||
"id": 763682530,
|
"id": 912840343,
|
||||||
"issue_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/7",
|
"issue_url": "https://api.github.com/repos/docker/test-docker-action/issues/15",
|
||||||
"labels": [],
|
"labels": [],
|
||||||
"locked": false,
|
"locked": false,
|
||||||
"maintainer_can_modify": true,
|
"maintainer_can_modify": true,
|
||||||
@@ -326,20 +342,20 @@
|
|||||||
"merged_at": null,
|
"merged_at": null,
|
||||||
"merged_by": null,
|
"merged_by": null,
|
||||||
"milestone": null,
|
"milestone": null,
|
||||||
"node_id": "PR_kwDOEQjNNc4thN7i",
|
"node_id": "PR_kwDOEQjNNc42aNaX",
|
||||||
"number": 7,
|
"number": 15,
|
||||||
"patch_url": "https://github.com/crazy-max/test-docker-action/pull/7.patch",
|
"patch_url": "https://github.com/docker/test-docker-action/pull/15.patch",
|
||||||
"rebaseable": null,
|
"rebaseable": null,
|
||||||
"requested_reviewers": [],
|
"requested_reviewers": [],
|
||||||
"requested_teams": [],
|
"requested_teams": [],
|
||||||
"review_comment_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/comments{/number}",
|
"review_comment_url": "https://api.github.com/repos/docker/test-docker-action/pulls/comments{/number}",
|
||||||
"review_comments": 0,
|
"review_comments": 0,
|
||||||
"review_comments_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/7/comments",
|
"review_comments_url": "https://api.github.com/repos/docker/test-docker-action/pulls/15/comments",
|
||||||
"state": "open",
|
"state": "open",
|
||||||
"statuses_url": "https://api.github.com/repos/crazy-max/test-docker-action/statuses/0337b3a374a0b833cf127b9111ca8c5589d93616",
|
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/3370e228f2209994d57af4427fe64e71bb79ac96",
|
||||||
"title": "Trigger notification",
|
"title": "small change",
|
||||||
"updated_at": "2021-10-21T21:46:27Z",
|
"updated_at": "2022-04-19T09:16:17Z",
|
||||||
"url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/7",
|
"url": "https://api.github.com/repos/docker/test-docker-action/pulls/15",
|
||||||
"user": {
|
"user": {
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
||||||
@@ -351,7 +367,7 @@
|
|||||||
"id": 1951866,
|
"id": 1951866,
|
||||||
"login": "crazy-max",
|
"login": "crazy-max",
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/users",
|
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
||||||
"site_admin": false,
|
"site_admin": false,
|
||||||
@@ -363,51 +379,51 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"allow_forking": true,
|
"allow_forking": true,
|
||||||
"archive_url": "https://api.github.com/repos/crazy-max/test-docker-action/{archive_format}{/ref}",
|
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
||||||
"archived": false,
|
"archived": false,
|
||||||
"assignees_url": "https://api.github.com/repos/crazy-max/test-docker-action/assignees{/user}",
|
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
||||||
"blobs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/blobs{/sha}",
|
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
||||||
"branches_url": "https://api.github.com/repos/crazy-max/test-docker-action/branches{/branch}",
|
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
||||||
"clone_url": "https://github.com/crazy-max/test-docker-action.git",
|
"clone_url": "https://github.com/docker/test-docker-action.git",
|
||||||
"collaborators_url": "https://api.github.com/repos/crazy-max/test-docker-action/collaborators{/collaborator}",
|
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
||||||
"comments_url": "https://api.github.com/repos/crazy-max/test-docker-action/comments{/number}",
|
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
||||||
"commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/commits{/sha}",
|
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
||||||
"compare_url": "https://api.github.com/repos/crazy-max/test-docker-action/compare/{base}...{head}",
|
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
||||||
"contents_url": "https://api.github.com/repos/crazy-max/test-docker-action/contents/{+path}",
|
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
||||||
"contributors_url": "https://api.github.com/repos/crazy-max/test-docker-action/contributors",
|
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
"created_at": "2020-08-07T09:23:00Z",
|
||||||
"default_branch": "master",
|
"default_branch": "master",
|
||||||
"deployments_url": "https://api.github.com/repos/crazy-max/test-docker-action/deployments",
|
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
||||||
"description": "Test \"Docker\" Actions",
|
"description": "Test \"Docker\" Actions",
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
"downloads_url": "https://api.github.com/repos/crazy-max/test-docker-action/downloads",
|
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
||||||
"events_url": "https://api.github.com/repos/crazy-max/test-docker-action/events",
|
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
||||||
"fork": false,
|
"fork": false,
|
||||||
"forks": 1,
|
"forks": 1,
|
||||||
"forks_count": 1,
|
"forks_count": 1,
|
||||||
"forks_url": "https://api.github.com/repos/crazy-max/test-docker-action/forks",
|
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
||||||
"full_name": "docker/test-docker-action",
|
"full_name": "docker/test-docker-action",
|
||||||
"git_commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/commits{/sha}",
|
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
||||||
"git_refs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/refs{/sha}",
|
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
||||||
"git_tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/tags{/sha}",
|
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
||||||
"git_url": "git://github.com/crazy-max/test-docker-action.git",
|
"git_url": "git://github.com/docker/test-docker-action.git",
|
||||||
"has_downloads": true,
|
"has_downloads": true,
|
||||||
"has_issues": false,
|
"has_issues": true,
|
||||||
"has_pages": false,
|
"has_pages": false,
|
||||||
"has_projects": false,
|
"has_projects": true,
|
||||||
"has_wiki": false,
|
"has_wiki": true,
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"hooks_url": "https://api.github.com/repos/crazy-max/test-docker-action/hooks",
|
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
||||||
"html_url": "https://github.com/crazy-max/test-docker-action",
|
"html_url": "https://github.com/docker/test-docker-action",
|
||||||
"id": 285789493,
|
"id": 285789493,
|
||||||
"is_template": false,
|
"is_template": false,
|
||||||
"issue_comment_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/comments{/number}",
|
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
||||||
"issue_events_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/events{/number}",
|
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
||||||
"issues_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues{/number}",
|
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
||||||
"keys_url": "https://api.github.com/repos/crazy-max/test-docker-action/keys{/key_id}",
|
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
||||||
"labels_url": "https://api.github.com/repos/crazy-max/test-docker-action/labels{/name}",
|
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
||||||
"language": "JavaScript",
|
"language": "JavaScript",
|
||||||
"languages_url": "https://api.github.com/repos/crazy-max/test-docker-action/languages",
|
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
||||||
"license": {
|
"license": {
|
||||||
"key": "mit",
|
"key": "mit",
|
||||||
"name": "MIT License",
|
"name": "MIT License",
|
||||||
@@ -415,52 +431,52 @@
|
|||||||
"spdx_id": "MIT",
|
"spdx_id": "MIT",
|
||||||
"url": "https://api.github.com/licenses/mit"
|
"url": "https://api.github.com/licenses/mit"
|
||||||
},
|
},
|
||||||
"merges_url": "https://api.github.com/repos/crazy-max/test-docker-action/merges",
|
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
||||||
"milestones_url": "https://api.github.com/repos/crazy-max/test-docker-action/milestones{/number}",
|
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
||||||
"mirror_url": null,
|
"mirror_url": null,
|
||||||
"name": "test-docker-action",
|
"name": "test-docker-action",
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
||||||
"notifications_url": "https://api.github.com/repos/crazy-max/test-docker-action/notifications{?since,all,participating}",
|
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
||||||
"open_issues": 5,
|
"open_issues": 6,
|
||||||
"open_issues_count": 5,
|
"open_issues_count": 6,
|
||||||
"owner": {
|
"owner": {
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
"followers_url": "https://api.github.com/users/docker/followers",
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
||||||
"gravatar_id": "",
|
"gravatar_id": "",
|
||||||
"html_url": "https://github.com/crazy-max",
|
"html_url": "https://github.com/docker",
|
||||||
"id": 5429470,
|
"id": 5429470,
|
||||||
"login": "docker",
|
"login": "docker",
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/users",
|
"organizations_url": "https://api.github.com/users/docker/orgs",
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
"received_events_url": "https://api.github.com/users/docker/received_events",
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
"repos_url": "https://api.github.com/users/docker/repos",
|
||||||
"site_admin": false,
|
"site_admin": false,
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
||||||
"type": "Organization",
|
"type": "Organization",
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
"url": "https://api.github.com/users/docker"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"pulls_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls{/number}",
|
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
||||||
"pushed_at": "2021-10-21T21:44:34Z",
|
"pushed_at": "2022-04-19T09:04:50Z",
|
||||||
"releases_url": "https://api.github.com/repos/crazy-max/test-docker-action/releases{/id}",
|
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
||||||
"size": 714,
|
"size": 796,
|
||||||
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
||||||
"stargazers_count": 0,
|
"stargazers_count": 0,
|
||||||
"stargazers_url": "https://api.github.com/repos/crazy-max/test-docker-action/stargazers",
|
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
||||||
"statuses_url": "https://api.github.com/repos/crazy-max/test-docker-action/statuses/{sha}",
|
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
||||||
"subscribers_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscribers",
|
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
||||||
"subscription_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscription",
|
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
||||||
"svn_url": "https://github.com/crazy-max/test-docker-action",
|
"svn_url": "https://github.com/docker/test-docker-action",
|
||||||
"tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/tags",
|
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
||||||
"teams_url": "https://api.github.com/repos/crazy-max/test-docker-action/teams",
|
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
||||||
"topics": [],
|
"topics": [],
|
||||||
"trees_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/trees{/sha}",
|
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
||||||
"updated_at": "2021-10-21T21:44:37Z",
|
"updated_at": "2022-04-19T09:05:09Z",
|
||||||
"url": "https://api.github.com/repos/crazy-max/test-docker-action",
|
"url": "https://api.github.com/repos/docker/test-docker-action",
|
||||||
"visibility": "private",
|
"visibility": "private",
|
||||||
"watchers": 0,
|
"watchers": 0,
|
||||||
"watchers_count": 0
|
"watchers_count": 0
|
||||||
@@ -476,7 +492,7 @@
|
|||||||
"id": 1951866,
|
"id": 1951866,
|
||||||
"login": "crazy-max",
|
"login": "crazy-max",
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/users",
|
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
||||||
"site_admin": false,
|
"site_admin": false,
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_REF=
|
||||||
@@ -6,20 +6,25 @@ 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_cc4da131-0660-4771-8663-0f96c0fc944f
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_2f69f48f-fb93-475f-a6a5-91dc7866f518
|
||||||
GITHUB_EVENT_NAME=pull_request_target
|
GITHUB_EVENT_NAME=pull_request_target
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_pull_request_target.json
|
GITHUB_EVENT_PATH=./__tests__/fixtures/event_pull_request_target.json
|
||||||
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
|
||||||
GITHUB_HEAD_REF=test-pr-target
|
GITHUB_HEAD_REF=test-pr
|
||||||
GITHUB_JOB=build
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_cc4da131-0660-4771-8663-0f96c0fc944f
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_2f69f48f-fb93-475f-a6a5-91dc7866f518
|
||||||
GITHUB_REF=refs/heads/master
|
GITHUB_REF=refs/heads/master
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=master
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=branch
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=867725119
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=12
|
GITHUB_RUN_ID=2188688000
|
||||||
|
GITHUB_RUN_NUMBER=10
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=f24900bfcfee76d8055c8421a164c7e57ad20e68
|
GITHUB_SHA=266574110acf203503badf966df2ea24b5d732d7
|
||||||
GITHUB_WORKFLOW=push-ghcr
|
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
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@@ -1,93 +1,109 @@
|
|||||||
{
|
{
|
||||||
"action": "synchronize",
|
"action": "opened",
|
||||||
"after": "57a8fb29acfb3c1e27c66226a8993fb4ef722e26",
|
"number": 15,
|
||||||
"before": "18c4c149d695bdeba42643ef8343a6b8e466970c",
|
"organization": {
|
||||||
"number": 8,
|
"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": {
|
"pull_request": {
|
||||||
"_links": {
|
"_links": {
|
||||||
"comments": {
|
"comments": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/issues/8/comments"
|
"href": "https://api.github.com/repos/docker/test-docker-action/issues/15/comments"
|
||||||
},
|
},
|
||||||
"commits": {
|
"commits": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/8/commits"
|
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/15/commits"
|
||||||
},
|
},
|
||||||
"html": {
|
"html": {
|
||||||
"href": "https://github.com/crazy-max/test-docker-action/pull/8"
|
"href": "https://github.com/docker/test-docker-action/pull/15"
|
||||||
},
|
},
|
||||||
"issue": {
|
"issue": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/issues/8"
|
"href": "https://api.github.com/repos/docker/test-docker-action/issues/15"
|
||||||
},
|
},
|
||||||
"review_comment": {
|
"review_comment": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/comments{/number}"
|
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/comments{/number}"
|
||||||
},
|
},
|
||||||
"review_comments": {
|
"review_comments": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/8/comments"
|
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/15/comments"
|
||||||
},
|
},
|
||||||
"self": {
|
"self": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/8"
|
"href": "https://api.github.com/repos/docker/test-docker-action/pulls/15"
|
||||||
},
|
},
|
||||||
"statuses": {
|
"statuses": {
|
||||||
"href": "https://api.github.com/repos/crazy-max/test-docker-action/statuses/57a8fb29acfb3c1e27c66226a8993fb4ef722e26"
|
"href": "https://api.github.com/repos/docker/test-docker-action/statuses/3370e228f2209994d57af4427fe64e71bb79ac96"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active_lock_reason": null,
|
"active_lock_reason": null,
|
||||||
"additions": 1,
|
"additions": 1,
|
||||||
"assignee": null,
|
"assignee": null,
|
||||||
"assignees": [],
|
"assignees": [],
|
||||||
"author_association": "OWNER",
|
"author_association": "COLLABORATOR",
|
||||||
"auto_merge": null,
|
"auto_merge": null,
|
||||||
"base": {
|
"base": {
|
||||||
"label": "crazy-max:master",
|
"label": "docker:master",
|
||||||
"ref": "master",
|
"ref": "master",
|
||||||
"repo": {
|
"repo": {
|
||||||
|
"allow_auto_merge": false,
|
||||||
|
"allow_forking": true,
|
||||||
"allow_merge_commit": true,
|
"allow_merge_commit": true,
|
||||||
"allow_rebase_merge": true,
|
"allow_rebase_merge": true,
|
||||||
"allow_squash_merge": true,
|
"allow_squash_merge": true,
|
||||||
"archive_url": "https://api.github.com/repos/crazy-max/test-docker-action/{archive_format}{/ref}",
|
"allow_update_branch": false,
|
||||||
|
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
||||||
"archived": false,
|
"archived": false,
|
||||||
"assignees_url": "https://api.github.com/repos/crazy-max/test-docker-action/assignees{/user}",
|
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
||||||
"blobs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/blobs{/sha}",
|
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
||||||
"branches_url": "https://api.github.com/repos/crazy-max/test-docker-action/branches{/branch}",
|
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
||||||
"clone_url": "https://github.com/crazy-max/test-docker-action.git",
|
"clone_url": "https://github.com/docker/test-docker-action.git",
|
||||||
"collaborators_url": "https://api.github.com/repos/crazy-max/test-docker-action/collaborators{/collaborator}",
|
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
||||||
"comments_url": "https://api.github.com/repos/crazy-max/test-docker-action/comments{/number}",
|
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
||||||
"commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/commits{/sha}",
|
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
||||||
"compare_url": "https://api.github.com/repos/crazy-max/test-docker-action/compare/{base}...{head}",
|
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
||||||
"contents_url": "https://api.github.com/repos/crazy-max/test-docker-action/contents/{+path}",
|
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
||||||
"contributors_url": "https://api.github.com/repos/crazy-max/test-docker-action/contributors",
|
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
"created_at": "2020-08-07T09:23:00Z",
|
||||||
"default_branch": "master",
|
"default_branch": "master",
|
||||||
"delete_branch_on_merge": false,
|
"delete_branch_on_merge": false,
|
||||||
"deployments_url": "https://api.github.com/repos/crazy-max/test-docker-action/deployments",
|
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
||||||
"description": "Test \"Docker\" Actions",
|
"description": "Test \"Docker\" Actions",
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
"downloads_url": "https://api.github.com/repos/crazy-max/test-docker-action/downloads",
|
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
||||||
"events_url": "https://api.github.com/repos/crazy-max/test-docker-action/events",
|
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
||||||
"fork": false,
|
"fork": false,
|
||||||
"forks": 4,
|
"forks": 1,
|
||||||
"forks_count": 4,
|
"forks_count": 1,
|
||||||
"forks_url": "https://api.github.com/repos/crazy-max/test-docker-action/forks",
|
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
||||||
"full_name": "crazy-max/test-docker-action",
|
"full_name": "docker/test-docker-action",
|
||||||
"git_commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/commits{/sha}",
|
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
||||||
"git_refs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/refs{/sha}",
|
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
||||||
"git_tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/tags{/sha}",
|
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
||||||
"git_url": "git://github.com/crazy-max/test-docker-action.git",
|
"git_url": "git://github.com/docker/test-docker-action.git",
|
||||||
"has_downloads": true,
|
"has_downloads": true,
|
||||||
"has_issues": false,
|
"has_issues": true,
|
||||||
"has_pages": false,
|
"has_pages": false,
|
||||||
"has_projects": false,
|
"has_projects": true,
|
||||||
"has_wiki": false,
|
"has_wiki": true,
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"hooks_url": "https://api.github.com/repos/crazy-max/test-docker-action/hooks",
|
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
||||||
"html_url": "https://github.com/crazy-max/test-docker-action",
|
"html_url": "https://github.com/docker/test-docker-action",
|
||||||
"id": 285789493,
|
"id": 285789493,
|
||||||
"issue_comment_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/comments{/number}",
|
"is_template": false,
|
||||||
"issue_events_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/events{/number}",
|
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
||||||
"issues_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues{/number}",
|
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
||||||
"keys_url": "https://api.github.com/repos/crazy-max/test-docker-action/keys{/key_id}",
|
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
||||||
"labels_url": "https://api.github.com/repos/crazy-max/test-docker-action/labels{/name}",
|
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
||||||
"language": "Dockerfile",
|
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
||||||
"languages_url": "https://api.github.com/repos/crazy-max/test-docker-action/languages",
|
"language": "JavaScript",
|
||||||
|
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
||||||
"license": {
|
"license": {
|
||||||
"key": "mit",
|
"key": "mit",
|
||||||
"name": "MIT License",
|
"name": "MIT License",
|
||||||
@@ -95,94 +111,99 @@
|
|||||||
"spdx_id": "MIT",
|
"spdx_id": "MIT",
|
||||||
"url": "https://api.github.com/licenses/mit"
|
"url": "https://api.github.com/licenses/mit"
|
||||||
},
|
},
|
||||||
"merges_url": "https://api.github.com/repos/crazy-max/test-docker-action/merges",
|
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
||||||
"milestones_url": "https://api.github.com/repos/crazy-max/test-docker-action/milestones{/number}",
|
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
||||||
"mirror_url": null,
|
"mirror_url": null,
|
||||||
"name": "test-docker-action",
|
"name": "test-docker-action",
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
||||||
"notifications_url": "https://api.github.com/repos/crazy-max/test-docker-action/notifications{?since,all,participating}",
|
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
||||||
"open_issues": 4,
|
"open_issues": 6,
|
||||||
"open_issues_count": 4,
|
"open_issues_count": 6,
|
||||||
"owner": {
|
"owner": {
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
"followers_url": "https://api.github.com/users/docker/followers",
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
||||||
"gravatar_id": "",
|
"gravatar_id": "",
|
||||||
"html_url": "https://github.com/crazy-max",
|
"html_url": "https://github.com/docker",
|
||||||
"id": 1951866,
|
"id": 5429470,
|
||||||
"login": "crazy-max",
|
"login": "docker",
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
"organizations_url": "https://api.github.com/users/docker/orgs",
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
"received_events_url": "https://api.github.com/users/docker/received_events",
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
"repos_url": "https://api.github.com/users/docker/repos",
|
||||||
"site_admin": false,
|
"site_admin": false,
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
||||||
"type": "User",
|
"type": "Organization",
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
"url": "https://api.github.com/users/docker"
|
||||||
},
|
},
|
||||||
"private": false,
|
"private": true,
|
||||||
"pulls_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls{/number}",
|
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
||||||
"pushed_at": "2021-05-23T01:38:41Z",
|
"pushed_at": "2022-04-19T09:04:50Z",
|
||||||
"releases_url": "https://api.github.com/repos/crazy-max/test-docker-action/releases{/id}",
|
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
||||||
"size": 137,
|
"size": 796,
|
||||||
"ssh_url": "git@github.com:crazy-max/test-docker-action.git",
|
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
||||||
"stargazers_count": 3,
|
"stargazers_count": 0,
|
||||||
"stargazers_url": "https://api.github.com/repos/crazy-max/test-docker-action/stargazers",
|
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
||||||
"statuses_url": "https://api.github.com/repos/crazy-max/test-docker-action/statuses/{sha}",
|
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
||||||
"subscribers_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscribers",
|
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
||||||
"subscription_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscription",
|
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
||||||
"svn_url": "https://github.com/crazy-max/test-docker-action",
|
"svn_url": "https://github.com/docker/test-docker-action",
|
||||||
"tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/tags",
|
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
||||||
"teams_url": "https://api.github.com/repos/crazy-max/test-docker-action/teams",
|
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
||||||
"trees_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/trees{/sha}",
|
"topics": [],
|
||||||
"updated_at": "2021-05-23T01:37:33Z",
|
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
||||||
"url": "https://api.github.com/repos/crazy-max/test-docker-action",
|
"updated_at": "2022-04-19T09:05:09Z",
|
||||||
"watchers": 3,
|
"url": "https://api.github.com/repos/docker/test-docker-action",
|
||||||
"watchers_count": 3
|
"visibility": "private",
|
||||||
|
"watchers": 0,
|
||||||
|
"watchers_count": 0
|
||||||
},
|
},
|
||||||
"sha": "2b13c4617af78dc00a6304390682f234a53f3665",
|
"sha": "266574110acf203503badf966df2ea24b5d732d7",
|
||||||
"user": {
|
"user": {
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
"followers_url": "https://api.github.com/users/docker/followers",
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
||||||
"gravatar_id": "",
|
"gravatar_id": "",
|
||||||
"html_url": "https://github.com/crazy-max",
|
"html_url": "https://github.com/docker",
|
||||||
"id": 1951866,
|
"id": 5429470,
|
||||||
"login": "crazy-max",
|
"login": "docker",
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
"organizations_url": "https://api.github.com/users/docker/orgs",
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
"received_events_url": "https://api.github.com/users/docker/received_events",
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
"repos_url": "https://api.github.com/users/docker/repos",
|
||||||
"site_admin": false,
|
"site_admin": false,
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
||||||
"type": "User",
|
"type": "Organization",
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
"url": "https://api.github.com/users/docker"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"body": "",
|
"body": null,
|
||||||
"changed_files": 1,
|
"changed_files": 1,
|
||||||
"closed_at": null,
|
"closed_at": null,
|
||||||
"comments": 0,
|
"comments": 0,
|
||||||
"comments_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/8/comments",
|
"comments_url": "https://api.github.com/repos/docker/test-docker-action/issues/15/comments",
|
||||||
"commits": 2,
|
"commits": 1,
|
||||||
"commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/8/commits",
|
"commits_url": "https://api.github.com/repos/docker/test-docker-action/pulls/15/commits",
|
||||||
"created_at": "2021-05-23T01:24:57Z",
|
"created_at": "2022-04-19T09:16:17Z",
|
||||||
"deletions": 1,
|
"deletions": 1,
|
||||||
"diff_url": "https://github.com/crazy-max/test-docker-action/pull/8.diff",
|
"diff_url": "https://github.com/docker/test-docker-action/pull/15.diff",
|
||||||
"draft": false,
|
"draft": false,
|
||||||
"head": {
|
"head": {
|
||||||
"label": "crazy-max:test-pr-target",
|
"label": "crazy-max:test-pr",
|
||||||
"ref": "test-pr-target",
|
"ref": "test-pr",
|
||||||
"repo": {
|
"repo": {
|
||||||
|
"allow_auto_merge": false,
|
||||||
|
"allow_forking": true,
|
||||||
"allow_merge_commit": true,
|
"allow_merge_commit": true,
|
||||||
"allow_rebase_merge": true,
|
"allow_rebase_merge": true,
|
||||||
"allow_squash_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}",
|
"archive_url": "https://api.github.com/repos/crazy-max/test-docker-action/{archive_format}{/ref}",
|
||||||
"archived": false,
|
"archived": false,
|
||||||
"assignees_url": "https://api.github.com/repos/crazy-max/test-docker-action/assignees{/user}",
|
"assignees_url": "https://api.github.com/repos/crazy-max/test-docker-action/assignees{/user}",
|
||||||
@@ -195,7 +216,7 @@
|
|||||||
"compare_url": "https://api.github.com/repos/crazy-max/test-docker-action/compare/{base}...{head}",
|
"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}",
|
"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",
|
"contributors_url": "https://api.github.com/repos/crazy-max/test-docker-action/contributors",
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
"created_at": "2021-07-11T17:34:22Z",
|
||||||
"default_branch": "master",
|
"default_branch": "master",
|
||||||
"delete_branch_on_merge": false,
|
"delete_branch_on_merge": false,
|
||||||
"deployments_url": "https://api.github.com/repos/crazy-max/test-docker-action/deployments",
|
"deployments_url": "https://api.github.com/repos/crazy-max/test-docker-action/deployments",
|
||||||
@@ -203,9 +224,9 @@
|
|||||||
"disabled": false,
|
"disabled": false,
|
||||||
"downloads_url": "https://api.github.com/repos/crazy-max/test-docker-action/downloads",
|
"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",
|
"events_url": "https://api.github.com/repos/crazy-max/test-docker-action/events",
|
||||||
"fork": false,
|
"fork": true,
|
||||||
"forks": 4,
|
"forks": 0,
|
||||||
"forks_count": 4,
|
"forks_count": 0,
|
||||||
"forks_url": "https://api.github.com/repos/crazy-max/test-docker-action/forks",
|
"forks_url": "https://api.github.com/repos/crazy-max/test-docker-action/forks",
|
||||||
"full_name": "crazy-max/test-docker-action",
|
"full_name": "crazy-max/test-docker-action",
|
||||||
"git_commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/commits{/sha}",
|
"git_commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/commits{/sha}",
|
||||||
@@ -215,18 +236,19 @@
|
|||||||
"has_downloads": true,
|
"has_downloads": true,
|
||||||
"has_issues": false,
|
"has_issues": false,
|
||||||
"has_pages": false,
|
"has_pages": false,
|
||||||
"has_projects": false,
|
"has_projects": true,
|
||||||
"has_wiki": false,
|
"has_wiki": false,
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"hooks_url": "https://api.github.com/repos/crazy-max/test-docker-action/hooks",
|
"hooks_url": "https://api.github.com/repos/crazy-max/test-docker-action/hooks",
|
||||||
"html_url": "https://github.com/crazy-max/test-docker-action",
|
"html_url": "https://github.com/crazy-max/test-docker-action",
|
||||||
"id": 285789493,
|
"id": 385013169,
|
||||||
|
"is_template": false,
|
||||||
"issue_comment_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/comments{/number}",
|
"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}",
|
"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}",
|
"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}",
|
"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}",
|
"labels_url": "https://api.github.com/repos/crazy-max/test-docker-action/labels{/name}",
|
||||||
"language": "Dockerfile",
|
"language": "JavaScript",
|
||||||
"languages_url": "https://api.github.com/repos/crazy-max/test-docker-action/languages",
|
"languages_url": "https://api.github.com/repos/crazy-max/test-docker-action/languages",
|
||||||
"license": {
|
"license": {
|
||||||
"key": "mit",
|
"key": "mit",
|
||||||
@@ -239,10 +261,10 @@
|
|||||||
"milestones_url": "https://api.github.com/repos/crazy-max/test-docker-action/milestones{/number}",
|
"milestones_url": "https://api.github.com/repos/crazy-max/test-docker-action/milestones{/number}",
|
||||||
"mirror_url": null,
|
"mirror_url": null,
|
||||||
"name": "test-docker-action",
|
"name": "test-docker-action",
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
"node_id": "MDEwOlJlcG9zaXRvcnkzODUwMTMxNjk=",
|
||||||
"notifications_url": "https://api.github.com/repos/crazy-max/test-docker-action/notifications{?since,all,participating}",
|
"notifications_url": "https://api.github.com/repos/crazy-max/test-docker-action/notifications{?since,all,participating}",
|
||||||
"open_issues": 4,
|
"open_issues": 0,
|
||||||
"open_issues_count": 4,
|
"open_issues_count": 0,
|
||||||
"owner": {
|
"owner": {
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
||||||
@@ -263,13 +285,13 @@
|
|||||||
"type": "User",
|
"type": "User",
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
"url": "https://api.github.com/users/crazy-max"
|
||||||
},
|
},
|
||||||
"private": false,
|
"private": true,
|
||||||
"pulls_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls{/number}",
|
"pulls_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls{/number}",
|
||||||
"pushed_at": "2021-05-23T01:38:41Z",
|
"pushed_at": "2022-04-19T09:16:07Z",
|
||||||
"releases_url": "https://api.github.com/repos/crazy-max/test-docker-action/releases{/id}",
|
"releases_url": "https://api.github.com/repos/crazy-max/test-docker-action/releases{/id}",
|
||||||
"size": 137,
|
"size": 151,
|
||||||
"ssh_url": "git@github.com:crazy-max/test-docker-action.git",
|
"ssh_url": "git@github.com:crazy-max/test-docker-action.git",
|
||||||
"stargazers_count": 3,
|
"stargazers_count": 0,
|
||||||
"stargazers_url": "https://api.github.com/repos/crazy-max/test-docker-action/stargazers",
|
"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}",
|
"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",
|
"subscribers_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscribers",
|
||||||
@@ -277,13 +299,15 @@
|
|||||||
"svn_url": "https://github.com/crazy-max/test-docker-action",
|
"svn_url": "https://github.com/crazy-max/test-docker-action",
|
||||||
"tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/tags",
|
"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",
|
"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}",
|
"trees_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/trees{/sha}",
|
||||||
"updated_at": "2021-05-23T01:37:33Z",
|
"updated_at": "2022-04-19T09:13:10Z",
|
||||||
"url": "https://api.github.com/repos/crazy-max/test-docker-action",
|
"url": "https://api.github.com/repos/crazy-max/test-docker-action",
|
||||||
"watchers": 3,
|
"visibility": "private",
|
||||||
"watchers_count": 3
|
"watchers": 0,
|
||||||
|
"watchers_count": 0
|
||||||
},
|
},
|
||||||
"sha": "57a8fb29acfb3c1e27c66226a8993fb4ef722e26",
|
"sha": "3370e228f2209994d57af4427fe64e71bb79ac96",
|
||||||
"user": {
|
"user": {
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
||||||
@@ -305,33 +329,33 @@
|
|||||||
"url": "https://api.github.com/users/crazy-max"
|
"url": "https://api.github.com/users/crazy-max"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"html_url": "https://github.com/crazy-max/test-docker-action/pull/8",
|
"html_url": "https://github.com/docker/test-docker-action/pull/15",
|
||||||
"id": 650710002,
|
"id": 912840343,
|
||||||
"issue_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/8",
|
"issue_url": "https://api.github.com/repos/docker/test-docker-action/issues/15",
|
||||||
"labels": [],
|
"labels": [],
|
||||||
"locked": false,
|
"locked": false,
|
||||||
"maintainer_can_modify": false,
|
"maintainer_can_modify": true,
|
||||||
"merge_commit_sha": "823b99c3c3cf5421e6ff0514b13a44bf21c7a4f0",
|
"merge_commit_sha": null,
|
||||||
"mergeable": null,
|
"mergeable": null,
|
||||||
"mergeable_state": "unknown",
|
"mergeable_state": "unknown",
|
||||||
"merged": false,
|
"merged": false,
|
||||||
"merged_at": null,
|
"merged_at": null,
|
||||||
"merged_by": null,
|
"merged_by": null,
|
||||||
"milestone": null,
|
"milestone": null,
|
||||||
"node_id": "MDExOlB1bGxSZXF1ZXN0NjUwNzEwMDAy",
|
"node_id": "PR_kwDOEQjNNc42aNaX",
|
||||||
"number": 8,
|
"number": 15,
|
||||||
"patch_url": "https://github.com/crazy-max/test-docker-action/pull/8.patch",
|
"patch_url": "https://github.com/docker/test-docker-action/pull/15.patch",
|
||||||
"rebaseable": null,
|
"rebaseable": null,
|
||||||
"requested_reviewers": [],
|
"requested_reviewers": [],
|
||||||
"requested_teams": [],
|
"requested_teams": [],
|
||||||
"review_comment_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/comments{/number}",
|
"review_comment_url": "https://api.github.com/repos/docker/test-docker-action/pulls/comments{/number}",
|
||||||
"review_comments": 0,
|
"review_comments": 0,
|
||||||
"review_comments_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/8/comments",
|
"review_comments_url": "https://api.github.com/repos/docker/test-docker-action/pulls/15/comments",
|
||||||
"state": "open",
|
"state": "open",
|
||||||
"statuses_url": "https://api.github.com/repos/crazy-max/test-docker-action/statuses/57a8fb29acfb3c1e27c66226a8993fb4ef722e26",
|
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/3370e228f2209994d57af4427fe64e71bb79ac96",
|
||||||
"title": "Test PR target",
|
"title": "small change",
|
||||||
"updated_at": "2021-05-23T01:38:42Z",
|
"updated_at": "2022-04-19T09:16:17Z",
|
||||||
"url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls/8",
|
"url": "https://api.github.com/repos/docker/test-docker-action/pulls/15",
|
||||||
"user": {
|
"user": {
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
||||||
@@ -354,50 +378,52 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"archive_url": "https://api.github.com/repos/crazy-max/test-docker-action/{archive_format}{/ref}",
|
"allow_forking": true,
|
||||||
|
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
||||||
"archived": false,
|
"archived": false,
|
||||||
"assignees_url": "https://api.github.com/repos/crazy-max/test-docker-action/assignees{/user}",
|
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
||||||
"blobs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/blobs{/sha}",
|
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
||||||
"branches_url": "https://api.github.com/repos/crazy-max/test-docker-action/branches{/branch}",
|
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
||||||
"clone_url": "https://github.com/crazy-max/test-docker-action.git",
|
"clone_url": "https://github.com/docker/test-docker-action.git",
|
||||||
"collaborators_url": "https://api.github.com/repos/crazy-max/test-docker-action/collaborators{/collaborator}",
|
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
||||||
"comments_url": "https://api.github.com/repos/crazy-max/test-docker-action/comments{/number}",
|
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
||||||
"commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/commits{/sha}",
|
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
||||||
"compare_url": "https://api.github.com/repos/crazy-max/test-docker-action/compare/{base}...{head}",
|
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
||||||
"contents_url": "https://api.github.com/repos/crazy-max/test-docker-action/contents/{+path}",
|
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
||||||
"contributors_url": "https://api.github.com/repos/crazy-max/test-docker-action/contributors",
|
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
||||||
"created_at": "2020-08-07T09:23:00Z",
|
"created_at": "2020-08-07T09:23:00Z",
|
||||||
"default_branch": "master",
|
"default_branch": "master",
|
||||||
"deployments_url": "https://api.github.com/repos/crazy-max/test-docker-action/deployments",
|
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
||||||
"description": "Test \"Docker\" Actions",
|
"description": "Test \"Docker\" Actions",
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
"downloads_url": "https://api.github.com/repos/crazy-max/test-docker-action/downloads",
|
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
||||||
"events_url": "https://api.github.com/repos/crazy-max/test-docker-action/events",
|
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
||||||
"fork": false,
|
"fork": false,
|
||||||
"forks": 4,
|
"forks": 1,
|
||||||
"forks_count": 4,
|
"forks_count": 1,
|
||||||
"forks_url": "https://api.github.com/repos/crazy-max/test-docker-action/forks",
|
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
||||||
"full_name": "crazy-max/test-docker-action",
|
"full_name": "docker/test-docker-action",
|
||||||
"git_commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/commits{/sha}",
|
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
||||||
"git_refs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/refs{/sha}",
|
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
||||||
"git_tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/tags{/sha}",
|
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
||||||
"git_url": "git://github.com/crazy-max/test-docker-action.git",
|
"git_url": "git://github.com/docker/test-docker-action.git",
|
||||||
"has_downloads": true,
|
"has_downloads": true,
|
||||||
"has_issues": false,
|
"has_issues": true,
|
||||||
"has_pages": false,
|
"has_pages": false,
|
||||||
"has_projects": false,
|
"has_projects": true,
|
||||||
"has_wiki": false,
|
"has_wiki": true,
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"hooks_url": "https://api.github.com/repos/crazy-max/test-docker-action/hooks",
|
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
||||||
"html_url": "https://github.com/crazy-max/test-docker-action",
|
"html_url": "https://github.com/docker/test-docker-action",
|
||||||
"id": 285789493,
|
"id": 285789493,
|
||||||
"issue_comment_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/comments{/number}",
|
"is_template": false,
|
||||||
"issue_events_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/events{/number}",
|
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
||||||
"issues_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues{/number}",
|
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
||||||
"keys_url": "https://api.github.com/repos/crazy-max/test-docker-action/keys{/key_id}",
|
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
||||||
"labels_url": "https://api.github.com/repos/crazy-max/test-docker-action/labels{/name}",
|
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
||||||
"language": "Dockerfile",
|
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
||||||
"languages_url": "https://api.github.com/repos/crazy-max/test-docker-action/languages",
|
"language": "JavaScript",
|
||||||
|
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
||||||
"license": {
|
"license": {
|
||||||
"key": "mit",
|
"key": "mit",
|
||||||
"name": "MIT License",
|
"name": "MIT License",
|
||||||
@@ -405,53 +431,55 @@
|
|||||||
"spdx_id": "MIT",
|
"spdx_id": "MIT",
|
||||||
"url": "https://api.github.com/licenses/mit"
|
"url": "https://api.github.com/licenses/mit"
|
||||||
},
|
},
|
||||||
"merges_url": "https://api.github.com/repos/crazy-max/test-docker-action/merges",
|
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
||||||
"milestones_url": "https://api.github.com/repos/crazy-max/test-docker-action/milestones{/number}",
|
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
||||||
"mirror_url": null,
|
"mirror_url": null,
|
||||||
"name": "test-docker-action",
|
"name": "test-docker-action",
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
||||||
"notifications_url": "https://api.github.com/repos/crazy-max/test-docker-action/notifications{?since,all,participating}",
|
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
||||||
"open_issues": 4,
|
"open_issues": 6,
|
||||||
"open_issues_count": 4,
|
"open_issues_count": 6,
|
||||||
"owner": {
|
"owner": {
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
"followers_url": "https://api.github.com/users/docker/followers",
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
||||||
"gravatar_id": "",
|
"gravatar_id": "",
|
||||||
"html_url": "https://github.com/crazy-max",
|
"html_url": "https://github.com/docker",
|
||||||
"id": 1951866,
|
"id": 5429470,
|
||||||
"login": "crazy-max",
|
"login": "docker",
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
"organizations_url": "https://api.github.com/users/docker/orgs",
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
"received_events_url": "https://api.github.com/users/docker/received_events",
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
"repos_url": "https://api.github.com/users/docker/repos",
|
||||||
"site_admin": false,
|
"site_admin": false,
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
||||||
"type": "User",
|
"type": "Organization",
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
"url": "https://api.github.com/users/docker"
|
||||||
},
|
},
|
||||||
"private": false,
|
"private": true,
|
||||||
"pulls_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls{/number}",
|
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
||||||
"pushed_at": "2021-05-23T01:38:41Z",
|
"pushed_at": "2022-04-19T09:04:50Z",
|
||||||
"releases_url": "https://api.github.com/repos/crazy-max/test-docker-action/releases{/id}",
|
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
||||||
"size": 137,
|
"size": 796,
|
||||||
"ssh_url": "git@github.com:crazy-max/test-docker-action.git",
|
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
||||||
"stargazers_count": 3,
|
"stargazers_count": 0,
|
||||||
"stargazers_url": "https://api.github.com/repos/crazy-max/test-docker-action/stargazers",
|
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
||||||
"statuses_url": "https://api.github.com/repos/crazy-max/test-docker-action/statuses/{sha}",
|
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
||||||
"subscribers_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscribers",
|
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
||||||
"subscription_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscription",
|
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
||||||
"svn_url": "https://github.com/crazy-max/test-docker-action",
|
"svn_url": "https://github.com/docker/test-docker-action",
|
||||||
"tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/tags",
|
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
||||||
"teams_url": "https://api.github.com/repos/crazy-max/test-docker-action/teams",
|
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
||||||
"trees_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/trees{/sha}",
|
"topics": [],
|
||||||
"updated_at": "2021-05-23T01:37:33Z",
|
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
||||||
"url": "https://api.github.com/repos/crazy-max/test-docker-action",
|
"updated_at": "2022-04-19T09:05:09Z",
|
||||||
"watchers": 3,
|
"url": "https://api.github.com/repos/docker/test-docker-action",
|
||||||
"watchers_count": 3
|
"visibility": "private",
|
||||||
|
"watchers": 0,
|
||||||
|
"watchers_count": 0
|
||||||
},
|
},
|
||||||
"sender": {
|
"sender": {
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
"avatar_url": "https://avatars.githubusercontent.com/u/1951866?v=4",
|
||||||
|
@@ -1,23 +0,0 @@
|
|||||||
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=./__tests__/fixtures/event_push.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
|
|
@@ -1,181 +0,0 @@
|
|||||||
{
|
|
||||||
"after": "ce1a91a20f9e2c064bcd76a7b95e091f831cf653",
|
|
||||||
"base_ref": null,
|
|
||||||
"before": "b0d66d13d5e8c795e0fc4b6c732b6b521807eca7",
|
|
||||||
"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": "ce1a91a20f9e2c064bcd76a7b95e091f831cf653",
|
|
||||||
"message": "Fix workflow",
|
|
||||||
"timestamp": "2021-10-21T23:44:33+02:00",
|
|
||||||
"tree_id": "8e46bf0c7fd95050deb02b11f0bc8c475c7428f3",
|
|
||||||
"url": "https://github.com/crazy-max/test-docker-action/commit/ce1a91a20f9e2c064bcd76a7b95e091f831cf653"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"compare": "https://github.com/crazy-max/test-docker-action/compare/b0d66d13d5e8...ce1a91a20f9e",
|
|
||||||
"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": "ce1a91a20f9e2c064bcd76a7b95e091f831cf653",
|
|
||||||
"message": "Fix workflow",
|
|
||||||
"timestamp": "2021-10-21T23:44:33+02:00",
|
|
||||||
"tree_id": "8e46bf0c7fd95050deb02b11f0bc8c475c7428f3",
|
|
||||||
"url": "https://github.com/crazy-max/test-docker-action/commit/ce1a91a20f9e2c064bcd76a7b95e091f831cf653"
|
|
||||||
},
|
|
||||||
"pusher": {
|
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
|
||||||
"name": "crazy-max"
|
|
||||||
},
|
|
||||||
"ref": "refs/heads/master",
|
|
||||||
"repository": {
|
|
||||||
"allow_forking": true,
|
|
||||||
"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": 1596792180,
|
|
||||||
"default_branch": "master",
|
|
||||||
"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": false,
|
|
||||||
"forks": 1,
|
|
||||||
"forks_count": 1,
|
|
||||||
"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": false,
|
|
||||||
"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": 285789493,
|
|
||||||
"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"
|
|
||||||
},
|
|
||||||
"master_branch": "master",
|
|
||||||
"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": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/crazy-max/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/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": 5429470,
|
|
||||||
"login": "docker",
|
|
||||||
"name": "docker",
|
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/users",
|
|
||||||
"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": "Organization",
|
|
||||||
"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": 1634852674,
|
|
||||||
"releases_url": "https://api.github.com/repos/crazy-max/test-docker-action/releases{/id}",
|
|
||||||
"size": 714,
|
|
||||||
"ssh_url": "git@github.com:crazy-max/test-docker-action.git",
|
|
||||||
"stargazers": 0,
|
|
||||||
"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": "2021-10-21T21:43:51Z",
|
|
||||||
"url": "https://github.com/crazy-max/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/users",
|
|
||||||
"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,23 +0,0 @@
|
|||||||
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
|
|
30
__tests__/fixtures/event_push_dev.env
Normal file
30
__tests__/fixtures/event_push_dev.env
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
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
|
195
__tests__/fixtures/event_push_dev.json
Normal file
195
__tests__/fixtures/event_push_dev.json
Normal file
@@ -0,0 +1,195 @@
|
|||||||
|
{
|
||||||
|
"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,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_89a016e8-e5b7-4039-a67e-c8da08f87a0c
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_5d7d8f7f-4b47-4f4c-b32a-e7fa634790c9
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
GITHUB_EVENT_PATH=./__tests__/fixtures/event_push_invalidchars.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_89a016e8-e5b7-4039-a67e-c8da08f87a0c
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_5d7d8f7f-4b47-4f4c-b32a-e7fa634790c9
|
||||||
GITHUB_REF="refs/heads/my/feature#1245"
|
GITHUB_REF=refs/heads/my/feature#1245
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=my/feature#1245
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=branch
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325957516
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=1
|
GITHUB_RUN_ID=2188792787
|
||||||
|
GITHUB_RUN_NUMBER=19
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=983315b5e8d46e46fc4c49869e85e7ee5fb289ba
|
||||||
GITHUB_WORKFLOW=event
|
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_5d7d8f7f-4b47-4f4c-b32a-e7fa634790c9
|
||||||
|
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
|
||||||
|
195
__tests__/fixtures/event_push_invalidchars.json
Normal file
195
__tests__/fixtures/event_push_invalidchars.json
Normal file
@@ -0,0 +1,195 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
30
__tests__/fixtures/event_push_master.env
Normal file
30
__tests__/fixtures/event_push_master.env
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
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
|
195
__tests__/fixtures/event_push_master.json
Normal file
195
__tests__/fixtures/event_push_master.json
Normal file
@@ -0,0 +1,195 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
@@ -1,23 +0,0 @@
|
|||||||
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
|
|
30
__tests__/fixtures/event_release_created.env
Normal file
30
__tests__/fixtures/event_release_created.env
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
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
|
80
__tests__/fixtures/event_release_created.json
Normal file
80
__tests__/fixtures/event_release_created.json
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
{
|
||||||
|
"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,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_5705dc72-e111-46f1-9421-a77a2daec643
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_c8594ff3-bed7-4fb7-b495-c63872db99a2
|
||||||
GITHUB_EVENT_NAME=schedule
|
GITHUB_EVENT_NAME=schedule
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
GITHUB_EVENT_PATH=./__tests__/fixtures/event_schedule.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_5705dc72-e111-46f1-9421-a77a2daec643
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_c8594ff3-bed7-4fb7-b495-c63872db99a2
|
||||||
GITHUB_REF=refs/heads/master
|
GITHUB_REF=refs/heads/master
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=master
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=branch
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325965155
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=3
|
GITHUB_RUN_ID=2188841209
|
||||||
|
GITHUB_RUN_NUMBER=24
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_c8594ff3-bed7-4fb7-b495-c63872db99a2
|
||||||
|
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
|
||||||
|
3
__tests__/fixtures/event_schedule.json
Normal file
3
__tests__/fixtures/event_schedule.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"schedule": "*/10 * * * *"
|
||||||
|
}
|
@@ -1,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_1.0dev4.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_REF=refs/tags/1.0dev4
|
GITHUB_REF=refs/tags/1.0dev4
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=1.0dev4
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=tag
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325968230
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=4
|
GITHUB_RUN_ID=2188815933
|
||||||
|
GITHUB_RUN_NUMBER=21
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
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
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@@ -1,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_1.1beta2.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_REF=refs/tags/1.1beta2
|
GITHUB_REF=refs/tags/1.1beta2
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=1.1beta2
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=tag
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325968230
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=4
|
GITHUB_RUN_ID=2188815933
|
||||||
|
GITHUB_RUN_NUMBER=21
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
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
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@@ -1,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_1.2.3rc2.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
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=refs/tags/1.2.3rc2
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=1.2.3rc2
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=tag
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325968230
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=4
|
GITHUB_RUN_ID=2188815933
|
||||||
|
GITHUB_RUN_NUMBER=21
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
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
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@@ -1,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_1.2.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_REF=refs/tags/1.2
|
GITHUB_REF=refs/tags/1.2
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=1.2
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=tag
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325968230
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=4
|
GITHUB_RUN_ID=2188815933
|
||||||
|
GITHUB_RUN_NUMBER=21
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
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
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@@ -1,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_1.2post1.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_REF=refs/tags/1.2post1
|
GITHUB_REF=refs/tags/1.2post1
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=1.2post1
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=tag
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325968230
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=4
|
GITHUB_RUN_ID=2188815933
|
||||||
|
GITHUB_RUN_NUMBER=21
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
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
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@@ -1,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_20200110-RC2.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_REF=refs/tags/20200110-RC2
|
GITHUB_REF=refs/tags/20200110-RC2
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=20200110-RC2
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=tag
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325968230
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=4
|
GITHUB_RUN_ID=2188815933
|
||||||
|
GITHUB_RUN_NUMBER=21
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
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
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@@ -1,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_p1-v1.0.0.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
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=refs/tags/p1/v1.0.0
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=p1/v1.0.0
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=tag
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325968230
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=4
|
GITHUB_RUN_ID=2188815933
|
||||||
|
GITHUB_RUN_NUMBER=21
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
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
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@@ -1,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_release1.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_REF=refs/tags/release1
|
GITHUB_REF=refs/tags/release1
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=release1
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=tag
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325968230
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=4
|
GITHUB_RUN_ID=2188815933
|
||||||
|
GITHUB_RUN_NUMBER=21
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
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
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@@ -1,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_sometag.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_REF=refs/tags/sometag
|
GITHUB_REF=refs/tags/sometag
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=sometag
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=tag
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325968230
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=4
|
GITHUB_RUN_ID=2188815933
|
||||||
|
GITHUB_RUN_NUMBER=21
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
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
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@@ -1,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_v1.1.1.json
|
GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_v1.1.1.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_REF=refs/tags/v1.1.1
|
GITHUB_REF=refs/tags/v1.1.1
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=v1.1.1
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=tag
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325968230
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=4
|
GITHUB_RUN_ID=2188815933
|
||||||
|
GITHUB_RUN_NUMBER=21
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
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
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"after": "8415a46e9494b78eca43a2dd8dca716b86b9df85",
|
"after": "860c1904a1ce19322e91ac35af1ab07466440c37",
|
||||||
"base_ref": "refs/heads/master",
|
"base_ref": "refs/heads/master",
|
||||||
"before": "0000000000000000000000000000000000000000",
|
"before": "0000000000000000000000000000000000000000",
|
||||||
"commits": [],
|
"commits": [],
|
||||||
"compare": "https://github.com/crazy-max/test-docker-action/compare/v1.1.1",
|
"compare": "https://github.com/docker/test-docker-action/compare/v1.1.1",
|
||||||
"created": true,
|
"created": true,
|
||||||
"deleted": false,
|
"deleted": false,
|
||||||
"forced": false,
|
"forced": false,
|
||||||
@@ -14,69 +14,83 @@
|
|||||||
"username": "crazy-max"
|
"username": "crazy-max"
|
||||||
},
|
},
|
||||||
"committer": {
|
"committer": {
|
||||||
"email": "noreply@github.com",
|
"email": "crazy-max@users.noreply.github.com",
|
||||||
"name": "GitHub",
|
"name": "CrazyMax",
|
||||||
"username": "web-flow"
|
"username": "crazy-max"
|
||||||
},
|
},
|
||||||
"distinct": true,
|
"distinct": true,
|
||||||
"id": "8415a46e9494b78eca43a2dd8dca716b86b9df85",
|
"id": "860c1904a1ce19322e91ac35af1ab07466440c37",
|
||||||
"message": "Trigger notification (#11)\n\nCo-authored-by: CrazyMax <crazy-max@users.noreply.github.com>",
|
"message": "scheduled",
|
||||||
"timestamp": "2021-10-21T23:47:22+02:00",
|
"timestamp": "2022-04-19T11:39:35+02:00",
|
||||||
"tree_id": "8e46bf0c7fd95050deb02b11f0bc8c475c7428f3",
|
"tree_id": "1d3608c3f204a4d754a1db925264929afd54daad",
|
||||||
"url": "https://github.com/crazy-max/test-docker-action/commit/8415a46e9494b78eca43a2dd8dca716b86b9df85"
|
"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": {
|
"pusher": {
|
||||||
"email": "crazy-max@users.noreply.github.com",
|
"email": "github@crazymax.dev",
|
||||||
"name": "crazy-max"
|
"name": "crazy-max"
|
||||||
},
|
},
|
||||||
"ref": "refs/tags/v1.1.1",
|
"ref": "refs/tags/v1.1.1",
|
||||||
"repository": {
|
"repository": {
|
||||||
"allow_forking": true,
|
"allow_forking": true,
|
||||||
"archive_url": "https://api.github.com/repos/crazy-max/test-docker-action/{archive_format}{/ref}",
|
"archive_url": "https://api.github.com/repos/docker/test-docker-action/{archive_format}{/ref}",
|
||||||
"archived": false,
|
"archived": false,
|
||||||
"assignees_url": "https://api.github.com/repos/crazy-max/test-docker-action/assignees{/user}",
|
"assignees_url": "https://api.github.com/repos/docker/test-docker-action/assignees{/user}",
|
||||||
"blobs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/blobs{/sha}",
|
"blobs_url": "https://api.github.com/repos/docker/test-docker-action/git/blobs{/sha}",
|
||||||
"branches_url": "https://api.github.com/repos/crazy-max/test-docker-action/branches{/branch}",
|
"branches_url": "https://api.github.com/repos/docker/test-docker-action/branches{/branch}",
|
||||||
"clone_url": "https://github.com/crazy-max/test-docker-action.git",
|
"clone_url": "https://github.com/docker/test-docker-action.git",
|
||||||
"collaborators_url": "https://api.github.com/repos/crazy-max/test-docker-action/collaborators{/collaborator}",
|
"collaborators_url": "https://api.github.com/repos/docker/test-docker-action/collaborators{/collaborator}",
|
||||||
"comments_url": "https://api.github.com/repos/crazy-max/test-docker-action/comments{/number}",
|
"comments_url": "https://api.github.com/repos/docker/test-docker-action/comments{/number}",
|
||||||
"commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/commits{/sha}",
|
"commits_url": "https://api.github.com/repos/docker/test-docker-action/commits{/sha}",
|
||||||
"compare_url": "https://api.github.com/repos/crazy-max/test-docker-action/compare/{base}...{head}",
|
"compare_url": "https://api.github.com/repos/docker/test-docker-action/compare/{base}...{head}",
|
||||||
"contents_url": "https://api.github.com/repos/crazy-max/test-docker-action/contents/{+path}",
|
"contents_url": "https://api.github.com/repos/docker/test-docker-action/contents/{+path}",
|
||||||
"contributors_url": "https://api.github.com/repos/crazy-max/test-docker-action/contributors",
|
"contributors_url": "https://api.github.com/repos/docker/test-docker-action/contributors",
|
||||||
"created_at": 1596792180,
|
"created_at": 1596792180,
|
||||||
"default_branch": "master",
|
"default_branch": "master",
|
||||||
"deployments_url": "https://api.github.com/repos/crazy-max/test-docker-action/deployments",
|
"deployments_url": "https://api.github.com/repos/docker/test-docker-action/deployments",
|
||||||
"description": "Test \"Docker\" Actions",
|
"description": "Test \"Docker\" Actions",
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
"downloads_url": "https://api.github.com/repos/crazy-max/test-docker-action/downloads",
|
"downloads_url": "https://api.github.com/repos/docker/test-docker-action/downloads",
|
||||||
"events_url": "https://api.github.com/repos/crazy-max/test-docker-action/events",
|
"events_url": "https://api.github.com/repos/docker/test-docker-action/events",
|
||||||
"fork": false,
|
"fork": false,
|
||||||
"forks": 1,
|
"forks": 1,
|
||||||
"forks_count": 1,
|
"forks_count": 1,
|
||||||
"forks_url": "https://api.github.com/repos/crazy-max/test-docker-action/forks",
|
"forks_url": "https://api.github.com/repos/docker/test-docker-action/forks",
|
||||||
"full_name": "crazy-max/test-docker-action",
|
"full_name": "docker/test-docker-action",
|
||||||
"git_commits_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/commits{/sha}",
|
"git_commits_url": "https://api.github.com/repos/docker/test-docker-action/git/commits{/sha}",
|
||||||
"git_refs_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/refs{/sha}",
|
"git_refs_url": "https://api.github.com/repos/docker/test-docker-action/git/refs{/sha}",
|
||||||
"git_tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/tags{/sha}",
|
"git_tags_url": "https://api.github.com/repos/docker/test-docker-action/git/tags{/sha}",
|
||||||
"git_url": "git://github.com/crazy-max/test-docker-action.git",
|
"git_url": "git://github.com/docker/test-docker-action.git",
|
||||||
"has_downloads": true,
|
"has_downloads": true,
|
||||||
"has_issues": false,
|
"has_issues": true,
|
||||||
"has_pages": false,
|
"has_pages": false,
|
||||||
"has_projects": false,
|
"has_projects": true,
|
||||||
"has_wiki": false,
|
"has_wiki": true,
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"hooks_url": "https://api.github.com/repos/crazy-max/test-docker-action/hooks",
|
"hooks_url": "https://api.github.com/repos/docker/test-docker-action/hooks",
|
||||||
"html_url": "https://github.com/crazy-max/test-docker-action",
|
"html_url": "https://github.com/docker/test-docker-action",
|
||||||
"id": 285789493,
|
"id": 285789493,
|
||||||
"is_template": false,
|
"is_template": false,
|
||||||
"issue_comment_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/comments{/number}",
|
"issue_comment_url": "https://api.github.com/repos/docker/test-docker-action/issues/comments{/number}",
|
||||||
"issue_events_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues/events{/number}",
|
"issue_events_url": "https://api.github.com/repos/docker/test-docker-action/issues/events{/number}",
|
||||||
"issues_url": "https://api.github.com/repos/crazy-max/test-docker-action/issues{/number}",
|
"issues_url": "https://api.github.com/repos/docker/test-docker-action/issues{/number}",
|
||||||
"keys_url": "https://api.github.com/repos/crazy-max/test-docker-action/keys{/key_id}",
|
"keys_url": "https://api.github.com/repos/docker/test-docker-action/keys{/key_id}",
|
||||||
"labels_url": "https://api.github.com/repos/crazy-max/test-docker-action/labels{/name}",
|
"labels_url": "https://api.github.com/repos/docker/test-docker-action/labels{/name}",
|
||||||
"language": "JavaScript",
|
"language": "JavaScript",
|
||||||
"languages_url": "https://api.github.com/repos/crazy-max/test-docker-action/languages",
|
"languages_url": "https://api.github.com/repos/docker/test-docker-action/languages",
|
||||||
"license": {
|
"license": {
|
||||||
"key": "mit",
|
"key": "mit",
|
||||||
"name": "MIT License",
|
"name": "MIT License",
|
||||||
@@ -85,56 +99,56 @@
|
|||||||
"url": "https://api.github.com/licenses/mit"
|
"url": "https://api.github.com/licenses/mit"
|
||||||
},
|
},
|
||||||
"master_branch": "master",
|
"master_branch": "master",
|
||||||
"merges_url": "https://api.github.com/repos/crazy-max/test-docker-action/merges",
|
"merges_url": "https://api.github.com/repos/docker/test-docker-action/merges",
|
||||||
"milestones_url": "https://api.github.com/repos/crazy-max/test-docker-action/milestones{/number}",
|
"milestones_url": "https://api.github.com/repos/docker/test-docker-action/milestones{/number}",
|
||||||
"mirror_url": null,
|
"mirror_url": null,
|
||||||
"name": "test-docker-action",
|
"name": "test-docker-action",
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
"node_id": "MDEwOlJlcG9zaXRvcnkyODU3ODk0OTM=",
|
||||||
"notifications_url": "https://api.github.com/repos/crazy-max/test-docker-action/notifications{?since,all,participating}",
|
"notifications_url": "https://api.github.com/repos/docker/test-docker-action/notifications{?since,all,participating}",
|
||||||
"open_issues": 4,
|
"open_issues": 6,
|
||||||
"open_issues_count": 4,
|
"open_issues_count": 6,
|
||||||
"organization": "docker",
|
"organization": "docker",
|
||||||
"owner": {
|
"owner": {
|
||||||
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
"avatar_url": "https://avatars.githubusercontent.com/u/5429470?v=4",
|
||||||
"email": "info@docker.com",
|
"email": "info@docker.com",
|
||||||
"events_url": "https://api.github.com/users/crazy-max/events{/privacy}",
|
"events_url": "https://api.github.com/users/docker/events{/privacy}",
|
||||||
"followers_url": "https://api.github.com/users/crazy-max/followers",
|
"followers_url": "https://api.github.com/users/docker/followers",
|
||||||
"following_url": "https://api.github.com/users/crazy-max/following{/other_user}",
|
"following_url": "https://api.github.com/users/docker/following{/other_user}",
|
||||||
"gists_url": "https://api.github.com/users/crazy-max/gists{/gist_id}",
|
"gists_url": "https://api.github.com/users/docker/gists{/gist_id}",
|
||||||
"gravatar_id": "",
|
"gravatar_id": "",
|
||||||
"html_url": "https://github.com/crazy-max",
|
"html_url": "https://github.com/docker",
|
||||||
"id": 5429470,
|
"id": 5429470,
|
||||||
"login": "docker",
|
"login": "docker",
|
||||||
"name": "docker",
|
"name": "docker",
|
||||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0Mjk0NzA=",
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/users",
|
"organizations_url": "https://api.github.com/users/docker/orgs",
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
"received_events_url": "https://api.github.com/users/docker/received_events",
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
"repos_url": "https://api.github.com/users/docker/repos",
|
||||||
"site_admin": false,
|
"site_admin": false,
|
||||||
"starred_url": "https://api.github.com/users/crazy-max/starred{/owner}{/repo}",
|
"starred_url": "https://api.github.com/users/docker/starred{/owner}{/repo}",
|
||||||
"subscriptions_url": "https://api.github.com/users/crazy-max/subscriptions",
|
"subscriptions_url": "https://api.github.com/users/docker/subscriptions",
|
||||||
"type": "Organization",
|
"type": "Organization",
|
||||||
"url": "https://api.github.com/users/crazy-max"
|
"url": "https://api.github.com/users/docker"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"pulls_url": "https://api.github.com/repos/crazy-max/test-docker-action/pulls{/number}",
|
"pulls_url": "https://api.github.com/repos/docker/test-docker-action/pulls{/number}",
|
||||||
"pushed_at": 1634852872,
|
"pushed_at": 1650361263,
|
||||||
"releases_url": "https://api.github.com/repos/crazy-max/test-docker-action/releases{/id}",
|
"releases_url": "https://api.github.com/repos/docker/test-docker-action/releases{/id}",
|
||||||
"size": 714,
|
"size": 796,
|
||||||
"ssh_url": "git@github.com:crazy-max/test-docker-action.git",
|
"ssh_url": "git@github.com:docker/test-docker-action.git",
|
||||||
"stargazers": 0,
|
"stargazers": 0,
|
||||||
"stargazers_count": 0,
|
"stargazers_count": 0,
|
||||||
"stargazers_url": "https://api.github.com/repos/crazy-max/test-docker-action/stargazers",
|
"stargazers_url": "https://api.github.com/repos/docker/test-docker-action/stargazers",
|
||||||
"statuses_url": "https://api.github.com/repos/crazy-max/test-docker-action/statuses/{sha}",
|
"statuses_url": "https://api.github.com/repos/docker/test-docker-action/statuses/{sha}",
|
||||||
"subscribers_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscribers",
|
"subscribers_url": "https://api.github.com/repos/docker/test-docker-action/subscribers",
|
||||||
"subscription_url": "https://api.github.com/repos/crazy-max/test-docker-action/subscription",
|
"subscription_url": "https://api.github.com/repos/docker/test-docker-action/subscription",
|
||||||
"svn_url": "https://github.com/crazy-max/test-docker-action",
|
"svn_url": "https://github.com/docker/test-docker-action",
|
||||||
"tags_url": "https://api.github.com/repos/crazy-max/test-docker-action/tags",
|
"tags_url": "https://api.github.com/repos/docker/test-docker-action/tags",
|
||||||
"teams_url": "https://api.github.com/repos/crazy-max/test-docker-action/teams",
|
"teams_url": "https://api.github.com/repos/docker/test-docker-action/teams",
|
||||||
"topics": [],
|
"topics": [],
|
||||||
"trees_url": "https://api.github.com/repos/crazy-max/test-docker-action/git/trees{/sha}",
|
"trees_url": "https://api.github.com/repos/docker/test-docker-action/git/trees{/sha}",
|
||||||
"updated_at": "2021-10-21T21:47:25Z",
|
"updated_at": "2022-04-19T09:05:09Z",
|
||||||
"url": "https://github.com/crazy-max/test-docker-action",
|
"url": "https://github.com/docker/test-docker-action",
|
||||||
"visibility": "private",
|
"visibility": "private",
|
||||||
"watchers": 0,
|
"watchers": 0,
|
||||||
"watchers_count": 0
|
"watchers_count": 0
|
||||||
@@ -150,7 +164,7 @@
|
|||||||
"id": 1951866,
|
"id": 1951866,
|
||||||
"login": "crazy-max",
|
"login": "crazy-max",
|
||||||
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
"node_id": "MDQ6VXNlcjE5NTE4NjY=",
|
||||||
"organizations_url": "https://api.github.com/users/crazy-max/users",
|
"organizations_url": "https://api.github.com/users/crazy-max/orgs",
|
||||||
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
"received_events_url": "https://api.github.com/users/crazy-max/received_events",
|
||||||
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
"repos_url": "https://api.github.com/users/crazy-max/repos",
|
||||||
"site_admin": false,
|
"site_admin": false,
|
||||||
|
@@ -1,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_v1.2.3rc2.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
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=refs/tags/v1.2.3rc2
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=v1.2.3rc2
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=tag
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325968230
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=4
|
GITHUB_RUN_ID=2188815933
|
||||||
|
GITHUB_RUN_NUMBER=21
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
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
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@@ -1,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_EVENT_NAME=push
|
GITHUB_EVENT_NAME=push
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
#GITHUB_EVENT_PATH=./__tests__/fixtures/event_tag_v2.0.8-beta.67.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_6ee180c2-b331-434a-a867-89534cbefd83
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_7703d3cb-84db-438f-9f97-46e159388a55
|
||||||
GITHUB_REF=refs/tags/v2.0.8-beta.67
|
GITHUB_REF=refs/tags/v2.0.8-beta.67
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=v2.0.8-beta.67
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=tag
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325968230
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=4
|
GITHUB_RUN_ID=2188815933
|
||||||
|
GITHUB_RUN_NUMBER=21
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
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
|
GITHUB_WORKSPACE=/home/runner/work/test-docker-action/test-docker-action
|
||||||
|
@@ -1,23 +1,30 @@
|
|||||||
GITHUB_ACTION=crazy-maxghaction-dump-context
|
GITHUB_ACTION=__crazy-max_ghaction-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_4c49cda0-764d-4055-9bd9-7caf67fcb10c
|
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_397d8f76-d5a2-478b-94ec-cadbffd1c08e
|
||||||
GITHUB_EVENT_NAME=workflow_dispatch
|
GITHUB_EVENT_NAME=workflow_dispatch
|
||||||
#GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
|
GITHUB_EVENT_PATH=./__tests__/fixtures/event_workflow_dispatch.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=event
|
GITHUB_JOB=test
|
||||||
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_4c49cda0-764d-4055-9bd9-7caf67fcb10c
|
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_397d8f76-d5a2-478b-94ec-cadbffd1c08e
|
||||||
GITHUB_REF=refs/heads/master
|
GITHUB_REF=refs/heads/master
|
||||||
GITHUB_REPOSITORY=crazy-max/test-docker-action
|
GITHUB_REF_NAME=master
|
||||||
GITHUB_REPOSITORY_OWNER=crazy-max
|
GITHUB_REF_PROTECTED=false
|
||||||
|
GITHUB_REF_TYPE=branch
|
||||||
|
GITHUB_REPOSITORY=docker/test-docker-action
|
||||||
|
GITHUB_REPOSITORY_OWNER=docker
|
||||||
GITHUB_RETENTION_DAYS=90
|
GITHUB_RETENTION_DAYS=90
|
||||||
GITHUB_RUN_ID=325962325
|
GITHUB_RUN_ATTEMPT=1
|
||||||
GITHUB_RUN_NUMBER=2
|
GITHUB_RUN_ID=2188839914
|
||||||
|
GITHUB_RUN_NUMBER=23
|
||||||
GITHUB_SERVER_URL=https://github.com
|
GITHUB_SERVER_URL=https://github.com
|
||||||
GITHUB_SHA=90dd6032fac8bda1b6c4436a2e65de27961ed071
|
GITHUB_SHA=860c1904a1ce19322e91ac35af1ab07466440c37
|
||||||
GITHUB_WORKFLOW=event
|
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_397d8f76-d5a2-478b-94ec-cadbffd1c08e
|
||||||
|
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
|
||||||
|
145
__tests__/fixtures/event_workflow_dispatch.json
Normal file
145
__tests__/fixtures/event_workflow_dispatch.json
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
30
__tests__/fixtures/event_workflow_dispatch_dev.env
Normal file
30
__tests__/fixtures/event_workflow_dispatch_dev.env
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
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
|
145
__tests__/fixtures/event_workflow_dispatch_dev.json
Normal file
145
__tests__/fixtures/event_workflow_dispatch_dev.json
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
{
|
||||||
|
"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,3 +1,4 @@
|
|||||||
|
import {describe, expect, test} from '@jest/globals';
|
||||||
import {Flavor, Transform} from '../src/flavor';
|
import {Flavor, Transform} from '../src/flavor';
|
||||||
|
|
||||||
describe('transform', () => {
|
describe('transform', () => {
|
||||||
@@ -165,7 +166,7 @@ describe('transform', () => {
|
|||||||
} as Flavor,
|
} as Flavor,
|
||||||
false
|
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);
|
||||||
expect(flavor).toEqual(expected);
|
expect(flavor).toEqual(expected);
|
||||||
@@ -173,6 +174,7 @@ describe('transform', () => {
|
|||||||
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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -1,8 +1,9 @@
|
|||||||
import * as path from 'path';
|
import {describe, expect, jest, it} from '@jest/globals';
|
||||||
import * as github from '../src/github';
|
import * as github from '../src/github';
|
||||||
|
|
||||||
|
import * as repoFixture from './fixtures/repo.json';
|
||||||
jest.spyOn(github, 'repo').mockImplementation((): Promise<github.ReposGetResponseData> => {
|
jest.spyOn(github, 'repo').mockImplementation((): Promise<github.ReposGetResponseData> => {
|
||||||
return <Promise<github.ReposGetResponseData>>require(path.join(__dirname, 'fixtures', 'repo.json'));
|
return <Promise<github.ReposGetResponseData>>(repoFixture as unknown);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('repo', () => {
|
describe('repo', () => {
|
||||||
|
101
__tests__/image.test.ts
Normal file
101
__tests__/image.test.ts
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
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[], 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,3 +1,4 @@
|
|||||||
|
import {describe, expect, test} from '@jest/globals';
|
||||||
import {Transform, Parse, Tag, Type, RefEvent, ShaFormat, DefaultPriorities} from '../src/tag';
|
import {Transform, Parse, Tag, Type, RefEvent, ShaFormat, DefaultPriorities} from '../src/tag';
|
||||||
|
|
||||||
describe('transform', () => {
|
describe('transform', () => {
|
||||||
@@ -104,6 +105,7 @@ describe('transform', () => {
|
|||||||
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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -415,17 +417,12 @@ describe('parse', () => {
|
|||||||
{} as Tag,
|
{} as Tag,
|
||||||
true
|
true
|
||||||
],
|
],
|
||||||
[
|
|
||||||
`type=sha,enable=foo`,
|
|
||||||
{} as Tag,
|
|
||||||
true
|
|
||||||
],
|
|
||||||
[
|
[
|
||||||
`type=sha,format=foo`,
|
`type=sha,format=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);
|
||||||
expect(tag).toEqual(expected);
|
expect(tag).toEqual(expected);
|
||||||
@@ -433,6 +430,7 @@ describe('parse', () => {
|
|||||||
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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -42,7 +42,9 @@ outputs:
|
|||||||
description: 'Generated Docker labels'
|
description: 'Generated Docker labels'
|
||||||
bake-file:
|
bake-file:
|
||||||
description: 'Bake definiton file'
|
description: 'Bake definiton file'
|
||||||
|
json:
|
||||||
|
description: 'JSON output of tags and labels'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node16'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# syntax=docker/dockerfile:1.3-labs
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
ARG NODE_VERSION
|
ARG NODE_VERSION=16
|
||||||
|
|
||||||
FROM node:${NODE_VERSION}-alpine AS base
|
FROM node:${NODE_VERSION}-alpine AS base
|
||||||
RUN apk add --no-cache cpio findutils git
|
RUN apk add --no-cache cpio findutils git
|
||||||
@@ -55,10 +55,10 @@ RUN --mount=type=bind,target=.,rw \
|
|||||||
FROM scratch AS format-update
|
FROM scratch AS format-update
|
||||||
COPY --from=format /out /
|
COPY --from=format /out /
|
||||||
|
|
||||||
FROM deps AS format-validate
|
FROM deps AS lint
|
||||||
RUN --mount=type=bind,target=.,rw \
|
RUN --mount=type=bind,target=.,rw \
|
||||||
--mount=type=cache,target=/src/node_modules \
|
--mount=type=cache,target=/src/node_modules \
|
||||||
yarn run format-check
|
yarn run lint
|
||||||
|
|
||||||
FROM deps AS test
|
FROM deps AS test
|
||||||
ENV RUNNER_TEMP=/tmp/github_runner
|
ENV RUNNER_TEMP=/tmp/github_runner
|
36366
dist/index.js
generated
vendored
36366
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
1
dist/index.js.map
generated
vendored
Normal file
1
dist/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
879
dist/licenses.txt
generated
vendored
Normal file
879
dist/licenses.txt
generated
vendored
Normal file
@@ -0,0 +1,879 @@
|
|||||||
|
@actions/core
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright 2019 GitHub
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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 SOFTWARE.
|
||||||
|
|
||||||
|
@actions/github
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright 2019 GitHub
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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 SOFTWARE.
|
||||||
|
|
||||||
|
@actions/http-client
|
||||||
|
MIT
|
||||||
|
Actions Http Client for Node.js
|
||||||
|
|
||||||
|
Copyright (c) GitHub, Inc.
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
||||||
|
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
||||||
|
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
@babel/runtime-corejs3
|
||||||
|
MIT
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
@octokit/auth-token
|
||||||
|
MIT
|
||||||
|
The MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2019 Octokit contributors
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
@octokit/core
|
||||||
|
MIT
|
||||||
|
The MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2019 Octokit contributors
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
@octokit/endpoint
|
||||||
|
MIT
|
||||||
|
The MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2018 Octokit contributors
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
@octokit/graphql
|
||||||
|
MIT
|
||||||
|
The MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2018 Octokit contributors
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
@octokit/plugin-paginate-rest
|
||||||
|
MIT
|
||||||
|
MIT License Copyright (c) 2019 Octokit contributors
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
@octokit/plugin-rest-endpoint-methods
|
||||||
|
MIT
|
||||||
|
MIT License Copyright (c) 2019 Octokit contributors
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
@octokit/request
|
||||||
|
MIT
|
||||||
|
The MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2018 Octokit contributors
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
@octokit/request-error
|
||||||
|
MIT
|
||||||
|
The MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2019 Octokit contributors
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
@renovate/pep440
|
||||||
|
Apache-2.0
|
||||||
|
This software is made available under the terms of *either* of the licenses
|
||||||
|
found in LICENSE.APACHE or LICENSE.BSD. Contributions to this software is made
|
||||||
|
under the terms of *both* these licenses.
|
||||||
|
|
||||||
|
|
||||||
|
@vercel/ncc
|
||||||
|
MIT
|
||||||
|
Copyright 2018 ZEIT, Inc.
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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 SOFTWARE.
|
||||||
|
|
||||||
|
before-after-hook
|
||||||
|
Apache-2.0
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
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
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright 2018 Gregor Martynus and other contributors.
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
http://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.
|
||||||
|
|
||||||
|
|
||||||
|
core-js-pure
|
||||||
|
MIT
|
||||||
|
Copyright (c) 2014-2021 Denis Pushkarev
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
csv-parse
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2010 Adaltas
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
deprecation
|
||||||
|
ISC
|
||||||
|
The ISC License
|
||||||
|
|
||||||
|
Copyright (c) Gregor Martynus and contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||||
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
handlebars
|
||||||
|
MIT
|
||||||
|
Copyright (C) 2011-2019 by Yehuda Katz
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
is-plain-object
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2014-2017, Jon Schlinkert.
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
lru-cache
|
||||||
|
ISC
|
||||||
|
The ISC License
|
||||||
|
|
||||||
|
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||||
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
moment
|
||||||
|
MIT
|
||||||
|
Copyright (c) JS Foundation and other contributors
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||||
|
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||||
|
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
node-fetch
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2016 David Frank
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
once
|
||||||
|
ISC
|
||||||
|
The ISC License
|
||||||
|
|
||||||
|
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||||
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
semver
|
||||||
|
ISC
|
||||||
|
The ISC License
|
||||||
|
|
||||||
|
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||||
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
source-map
|
||||||
|
BSD-3-Clause
|
||||||
|
|
||||||
|
Copyright (c) 2009-2011, Mozilla Foundation and contributors
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
* Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
* Neither the names of the Mozilla Foundation nor the names of project
|
||||||
|
contributors may be used to endorse or promote products derived from this
|
||||||
|
software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
|
||||||
|
tr46
|
||||||
|
MIT
|
||||||
|
|
||||||
|
tunnel
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2012 Koichi Kobayashi
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
universal-user-agent
|
||||||
|
ISC
|
||||||
|
# [ISC License](https://spdx.org/licenses/ISC)
|
||||||
|
|
||||||
|
Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m)
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
uuid
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2010-2020 Robert Kieffer and other contributors
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
webidl-conversions
|
||||||
|
BSD-2-Clause
|
||||||
|
# The BSD 2-Clause License
|
||||||
|
|
||||||
|
Copyright (c) 2014, Domenic Denicola
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
|
||||||
|
whatwg-url
|
||||||
|
MIT
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2015–2016 Sebastian Mayr
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
wrappy
|
||||||
|
ISC
|
||||||
|
The ISC License
|
||||||
|
|
||||||
|
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||||
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
xregexp
|
||||||
|
MIT
|
||||||
|
The MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2007-present Steven Levithan <http://xregexp.com/>
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
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 SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
yallist
|
||||||
|
ISC
|
||||||
|
The ISC License
|
||||||
|
|
||||||
|
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||||
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
1
dist/sourcemap-register.js
generated
vendored
Normal file
1
dist/sourcemap-register.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,13 +1,3 @@
|
|||||||
variable "NODE_VERSION" {
|
|
||||||
default = "12"
|
|
||||||
}
|
|
||||||
|
|
||||||
target "node-version" {
|
|
||||||
args = {
|
|
||||||
NODE_VERSION = NODE_VERSION
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
group "default" {
|
group "default" {
|
||||||
targets = ["build"]
|
targets = ["build"]
|
||||||
}
|
}
|
||||||
@@ -17,54 +7,47 @@ group "pre-checkin" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group "validate" {
|
group "validate" {
|
||||||
targets = ["format-validate", "build-validate", "vendor-validate"]
|
targets = ["lint", "build-validate", "vendor-validate"]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "build" {
|
target "build" {
|
||||||
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 = ["node-version"]
|
dockerfile = "dev.Dockerfile"
|
||||||
dockerfile = "./hack/build.Dockerfile"
|
|
||||||
target = "build-validate"
|
target = "build-validate"
|
||||||
output = ["type=cacheonly"]
|
output = ["type=cacheonly"]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "format" {
|
target "format" {
|
||||||
inherits = ["node-version"]
|
dockerfile = "dev.Dockerfile"
|
||||||
dockerfile = "./hack/build.Dockerfile"
|
|
||||||
target = "format-update"
|
target = "format-update"
|
||||||
output = ["."]
|
output = ["."]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "format-validate" {
|
target "lint" {
|
||||||
inherits = ["node-version"]
|
dockerfile = "dev.Dockerfile"
|
||||||
dockerfile = "./hack/build.Dockerfile"
|
target = "lint"
|
||||||
target = "format-validate"
|
|
||||||
output = ["type=cacheonly"]
|
output = ["type=cacheonly"]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "vendor-update" {
|
target "vendor-update" {
|
||||||
inherits = ["node-version"]
|
dockerfile = "dev.Dockerfile"
|
||||||
dockerfile = "./hack/build.Dockerfile"
|
|
||||||
target = "vendor-update"
|
target = "vendor-update"
|
||||||
output = ["."]
|
output = ["."]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "vendor-validate" {
|
target "vendor-validate" {
|
||||||
inherits = ["node-version"]
|
dockerfile = "dev.Dockerfile"
|
||||||
dockerfile = "./hack/build.Dockerfile"
|
|
||||||
target = "vendor-validate"
|
target = "vendor-validate"
|
||||||
output = ["type=cacheonly"]
|
output = ["type=cacheonly"]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "test" {
|
target "test" {
|
||||||
inherits = ["node-version"]
|
dockerfile = "dev.Dockerfile"
|
||||||
dockerfile = "./hack/build.Dockerfile"
|
|
||||||
target = "test-coverage"
|
target = "test-coverage"
|
||||||
output = ["./coverage"]
|
output = ["./coverage"]
|
||||||
}
|
}
|
||||||
|
@@ -1,12 +1,13 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
clearMocks: true,
|
clearMocks: true,
|
||||||
moduleFileExtensions: ['js', 'ts'],
|
moduleFileExtensions: ['js', 'ts'],
|
||||||
setupFiles: ["dotenv/config"],
|
setupFiles: ['dotenv/config'],
|
||||||
testEnvironment: 'node',
|
|
||||||
testMatch: ['**/*.test.ts'],
|
testMatch: ['**/*.test.ts'],
|
||||||
testRunner: 'jest-circus/runner',
|
|
||||||
transform: {
|
transform: {
|
||||||
'^.+\\.ts$': 'ts-jest'
|
'^.+\\.ts$': 'ts-jest'
|
||||||
},
|
},
|
||||||
verbose: false
|
moduleNameMapper: {
|
||||||
}
|
'^csv-parse/sync': '<rootDir>/node_modules/csv-parse/dist/cjs/sync.cjs'
|
||||||
|
},
|
||||||
|
verbose: true
|
||||||
|
};
|
44
package.json
44
package.json
@@ -3,11 +3,11 @@
|
|||||||
"description": "GitHub Action to extract metadata (tags, labels) for Docker",
|
"description": "GitHub Action to extract metadata (tags, labels) for Docker",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc && ncc build",
|
"build": "ncc build src/main.ts --source-map --minify --license licenses.txt",
|
||||||
|
"lint": "eslint src/**/*.ts __tests__/**/*.ts",
|
||||||
|
"format": "eslint --fix src/**/*.ts __tests__/**/*.ts",
|
||||||
"test": "jest --coverage",
|
"test": "jest --coverage",
|
||||||
"format": "prettier --write **/*.ts",
|
"all": "yarn run build && yarn run format && yarn test"
|
||||||
"format-check": "prettier --check **/*.ts",
|
|
||||||
"pre-checkin": "yarn run format && yarn run build"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -29,24 +29,30 @@
|
|||||||
],
|
],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.6.0",
|
"@actions/core": "^1.10.0",
|
||||||
"@actions/github": "^5.0.0",
|
"@actions/github": "^5.1.1",
|
||||||
"@renovate/pep440": "^1.0.0",
|
"@renovate/pep440": "^1.0.0",
|
||||||
"csv-parse": "^4.16.3",
|
"csv-parse": "^5.3.0",
|
||||||
"handlebars": "^4.7.7",
|
"handlebars": "^4.7.7",
|
||||||
"moment": "^2.29.1",
|
"moment": "^2.29.4",
|
||||||
"semver": "^7.3.5"
|
"semver": "^7.3.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^26.0.23",
|
"@types/csv-parse": "^1.2.2",
|
||||||
"@types/node": "^14.17.4",
|
"@types/node": "^16.11.26",
|
||||||
"@vercel/ncc": "^0.28.6",
|
"@types/semver": "^7.3.9",
|
||||||
"dotenv": "^8.6.0",
|
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
||||||
"jest": "^26.6.3",
|
"@typescript-eslint/parser": "^5.14.0",
|
||||||
"jest-circus": "^26.6.3",
|
"@vercel/ncc": "^0.33.3",
|
||||||
"jest-runtime": "^26.6.3",
|
"dotenv": "^16.0.0",
|
||||||
"prettier": "^2.3.2",
|
"eslint": "^8.11.0",
|
||||||
"ts-jest": "^26.5.6",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"typescript": "^4.3.5"
|
"eslint-plugin-jest": "^26.1.1",
|
||||||
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
|
"jest": "^27.2.5",
|
||||||
|
"prettier": "^2.3.1",
|
||||||
|
"ts-jest": "^27.1.2",
|
||||||
|
"ts-node": "^10.7.0",
|
||||||
|
"typescript": "^4.4.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,9 +1,8 @@
|
|||||||
import csvparse from 'csv-parse/lib/sync';
|
|
||||||
import * as core from '@actions/core';
|
|
||||||
import {issueCommand} from '@actions/core/lib/command';
|
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as os from 'os';
|
import * as os from 'os';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
|
import * as core from '@actions/core';
|
||||||
|
import {parse} from 'csv-parse/sync';
|
||||||
|
|
||||||
let _tmpDir: string;
|
let _tmpDir: string;
|
||||||
|
|
||||||
@@ -27,39 +26,42 @@ export function tmpDir(): string {
|
|||||||
|
|
||||||
export function getInputs(): Inputs {
|
export function getInputs(): Inputs {
|
||||||
return {
|
return {
|
||||||
images: getInputList('images'),
|
images: getInputList('images', true),
|
||||||
tags: getInputList('tags', true),
|
tags: getInputList('tags', true),
|
||||||
flavor: getInputList('flavor', true),
|
flavor: getInputList('flavor', true),
|
||||||
labels: getInputList('labels', true),
|
labels: getInputList('labels', true),
|
||||||
sepTags: core.getInput('sep-tags') || `\n`,
|
sepTags: core.getInput('sep-tags', {trimWhitespace: false}) || `\n`,
|
||||||
sepLabels: core.getInput('sep-labels') || `\n`,
|
sepLabels: core.getInput('sep-labels', {trimWhitespace: false}) || `\n`,
|
||||||
bakeTarget: core.getInput('bake-target') || `docker-metadata-action`,
|
bakeTarget: core.getInput('bake-target') || `docker-metadata-action`,
|
||||||
githubToken: core.getInput('github-token')
|
githubToken: core.getInput('github-token')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getInputList(name: string, ignoreComma?: boolean): string[] {
|
export function getInputList(name: string, ignoreComma?: boolean): string[] {
|
||||||
let res: Array<string> = [];
|
const res: Array<string> = [];
|
||||||
|
|
||||||
const items = core.getInput(name);
|
const items = core.getInput(name);
|
||||||
if (items == '') {
|
if (items == '') {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let output of csvparse(items, {
|
const records = parse(items, {
|
||||||
columns: false,
|
columns: false,
|
||||||
relax: true,
|
relaxQuotes: true,
|
||||||
|
comment: '#',
|
||||||
relaxColumnCount: true,
|
relaxColumnCount: true,
|
||||||
skipLinesWithEmptyValues: true
|
skipEmptyLines: true
|
||||||
}) as Array<string[]>) {
|
});
|
||||||
if (output.length == 1) {
|
|
||||||
res.push(output[0]);
|
for (const record of records as Array<string[]>) {
|
||||||
|
if (record.length == 1) {
|
||||||
|
res.push(record[0]);
|
||||||
continue;
|
continue;
|
||||||
} else if (!ignoreComma) {
|
} else if (!ignoreComma) {
|
||||||
res.push(...output);
|
res.push(...record);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
res.push(output.join(','));
|
res.push(record.join(','));
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.filter(item => item).map(pat => pat.trim());
|
return res.filter(item => item).map(pat => pat.trim());
|
||||||
@@ -70,8 +72,3 @@ export const asyncForEach = async (array, callback) => {
|
|||||||
await callback(array[index], index, array);
|
await callback(array[index], index, array);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// FIXME: Temp fix https://github.com/actions/toolkit/issues/777
|
|
||||||
export function setOutput(name: string, value: any): void {
|
|
||||||
issueCommand('set-output', {name}, value);
|
|
||||||
}
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
import {parse} from 'csv-parse/sync';
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
import csvparse from 'csv-parse/lib/sync';
|
|
||||||
|
|
||||||
export interface Flavor {
|
export interface Flavor {
|
||||||
latest: string;
|
latest: string;
|
||||||
@@ -19,9 +19,9 @@ export function Transform(inputs: string[]): Flavor {
|
|||||||
};
|
};
|
||||||
|
|
||||||
for (const input of inputs) {
|
for (const input of inputs) {
|
||||||
const fields = csvparse(input, {
|
const fields = parse(input, {
|
||||||
relaxColumnCount: true,
|
relaxColumnCount: true,
|
||||||
skipLinesWithEmptyValues: true
|
skipEmptyLines: true
|
||||||
})[0];
|
})[0];
|
||||||
let onlatestfor = '';
|
let onlatestfor = '';
|
||||||
for (const field of fields) {
|
for (const field of fields) {
|
||||||
|
@@ -11,8 +11,6 @@ export function context(): Context {
|
|||||||
export async function repo(token: string): Promise<ReposGetResponseData> {
|
export async function repo(token: string): Promise<ReposGetResponseData> {
|
||||||
return github
|
return github
|
||||||
.getOctokit(token)
|
.getOctokit(token)
|
||||||
.rest.repos.get({
|
.rest.repos.get({...github.context.repo})
|
||||||
...github.context.repo
|
|
||||||
})
|
|
||||||
.then(response => response.data as ReposGetResponseData);
|
.then(response => response.data as ReposGetResponseData);
|
||||||
}
|
}
|
||||||
|
86
src/image.ts
Normal file
86
src/image.ts
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
import {parse} from 'csv-parse/sync';
|
||||||
|
import * as core from '@actions/core';
|
||||||
|
|
||||||
|
export interface Image {
|
||||||
|
name: string;
|
||||||
|
enable: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function Transform(inputs: string[]): Image[] {
|
||||||
|
let images: Image[] = [];
|
||||||
|
|
||||||
|
// backward compatibility with old format
|
||||||
|
if (inputs.length == 1) {
|
||||||
|
let newformat = false;
|
||||||
|
const fields = parse(inputs[0], {
|
||||||
|
relaxColumnCount: true,
|
||||||
|
skipEmptyLines: true
|
||||||
|
})[0];
|
||||||
|
for (const field of fields) {
|
||||||
|
const parts = field
|
||||||
|
.toString()
|
||||||
|
.split('=')
|
||||||
|
.map(item => item.trim());
|
||||||
|
if (parts.length == 1) {
|
||||||
|
images.push({name: parts[0], enable: true});
|
||||||
|
} else {
|
||||||
|
newformat = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!newformat) {
|
||||||
|
return output(images);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
images = [];
|
||||||
|
for (const input of inputs) {
|
||||||
|
const image: Image = {name: '', enable: true};
|
||||||
|
const fields = parse(input, {
|
||||||
|
relaxColumnCount: true,
|
||||||
|
skipEmptyLines: true
|
||||||
|
})[0];
|
||||||
|
for (const field of fields) {
|
||||||
|
const parts = field
|
||||||
|
.toString()
|
||||||
|
.split('=')
|
||||||
|
.map(item => item.trim());
|
||||||
|
if (parts.length == 1) {
|
||||||
|
image.name = parts[0];
|
||||||
|
} else {
|
||||||
|
const key = parts[0].toLowerCase();
|
||||||
|
const value = parts[1];
|
||||||
|
switch (key) {
|
||||||
|
case 'name': {
|
||||||
|
image.name = value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 'enable': {
|
||||||
|
if (!['true', 'false'].includes(value)) {
|
||||||
|
throw new Error(`Invalid enable attribute value: ${input}`);
|
||||||
|
}
|
||||||
|
image.enable = /true/i.test(value);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
throw new Error(`Unknown image attribute: ${input}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (image.name.length == 0) {
|
||||||
|
throw new Error(`Image name attribute empty: ${input}`);
|
||||||
|
}
|
||||||
|
images.push(image);
|
||||||
|
}
|
||||||
|
return output(images);
|
||||||
|
}
|
||||||
|
|
||||||
|
function output(images: Image[]): Image[] {
|
||||||
|
core.startGroup(`Processing images input`);
|
||||||
|
for (const image of images) {
|
||||||
|
core.info(`name=${image.name},enable=${image.enable}`);
|
||||||
|
}
|
||||||
|
core.endGroup();
|
||||||
|
return images;
|
||||||
|
}
|
26
src/main.ts
26
src/main.ts
@@ -1,5 +1,5 @@
|
|||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import {getInputs, Inputs, setOutput} from './context';
|
import {getInputs, Inputs} from './context';
|
||||||
import * as github from './github';
|
import * as github from './github';
|
||||||
import {Meta, Version} from './meta';
|
import {Meta, Version} from './meta';
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
@@ -25,6 +25,12 @@ async function run() {
|
|||||||
core.info(`runId: ${context.runId}`);
|
core.info(`runId: ${context.runId}`);
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
|
|
||||||
|
if (core.isDebug()) {
|
||||||
|
core.startGroup(`Webhook payload`);
|
||||||
|
core.info(JSON.stringify(context.payload, null, 2));
|
||||||
|
core.endGroup();
|
||||||
|
}
|
||||||
|
|
||||||
const meta: Meta = new Meta(inputs, context, repo);
|
const meta: Meta = new Meta(inputs, context, repo);
|
||||||
|
|
||||||
const version: Version = meta.version;
|
const version: Version = meta.version;
|
||||||
@@ -35,7 +41,7 @@ async function run() {
|
|||||||
core.info(version.main || '');
|
core.info(version.main || '');
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
}
|
}
|
||||||
setOutput('version', version.main || '');
|
core.setOutput('version', version.main || '');
|
||||||
|
|
||||||
// Docker tags
|
// Docker tags
|
||||||
const tags: Array<string> = meta.getTags();
|
const tags: Array<string> = meta.getTags();
|
||||||
@@ -43,35 +49,35 @@ async function run() {
|
|||||||
core.warning('No Docker tag has been generated. Check tags input.');
|
core.warning('No Docker tag has been generated. Check tags input.');
|
||||||
} else {
|
} else {
|
||||||
core.startGroup(`Docker tags`);
|
core.startGroup(`Docker tags`);
|
||||||
for (let tag of tags) {
|
for (const tag of tags) {
|
||||||
core.info(tag);
|
core.info(tag);
|
||||||
}
|
}
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
}
|
}
|
||||||
setOutput('tags', tags.join(inputs.sepTags));
|
core.setOutput('tags', tags.join(inputs.sepTags));
|
||||||
|
|
||||||
// Docker labels
|
// Docker labels
|
||||||
const labels: Array<string> = meta.getLabels();
|
const labels: Array<string> = meta.getLabels();
|
||||||
core.startGroup(`Docker labels`);
|
core.startGroup(`Docker labels`);
|
||||||
for (let label of labels) {
|
for (const label of labels) {
|
||||||
core.info(label);
|
core.info(label);
|
||||||
}
|
}
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
setOutput('labels', labels.join(inputs.sepLabels));
|
core.setOutput('labels', labels.join(inputs.sepLabels));
|
||||||
|
|
||||||
// JSON
|
// JSON
|
||||||
const jsonOutput = meta.getJSON();
|
const jsonOutput = meta.getJSON();
|
||||||
core.startGroup(`JSON output`);
|
core.startGroup(`JSON output`);
|
||||||
core.info(JSON.stringify(jsonOutput, null, 2));
|
core.info(JSON.stringify(jsonOutput, null, 2));
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
setOutput('json', jsonOutput);
|
core.setOutput('json', jsonOutput);
|
||||||
|
|
||||||
// Bake definition file
|
// Bake file definition
|
||||||
const bakeFile: string = meta.getBakeFile();
|
const bakeFile: string = meta.getBakeFile();
|
||||||
core.startGroup(`Bake definition file`);
|
core.startGroup(`Bake file definition`);
|
||||||
core.info(fs.readFileSync(bakeFile, 'utf8'));
|
core.info(fs.readFileSync(bakeFile, 'utf8'));
|
||||||
core.endGroup();
|
core.endGroup();
|
||||||
setOutput('bake-file', bakeFile);
|
core.setOutput('bake-file', bakeFile);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
|
109
src/meta.ts
109
src/meta.ts
@@ -6,6 +6,7 @@ import * as pep440 from '@renovate/pep440';
|
|||||||
import * as semver from 'semver';
|
import * as semver from 'semver';
|
||||||
import {Inputs, tmpDir} from './context';
|
import {Inputs, tmpDir} from './context';
|
||||||
import {ReposGetResponseData} from './github';
|
import {ReposGetResponseData} from './github';
|
||||||
|
import * as icl from './image';
|
||||||
import * as tcl from './tag';
|
import * as tcl from './tag';
|
||||||
import * as fcl from './flavor';
|
import * as fcl from './flavor';
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
@@ -23,6 +24,7 @@ export class Meta {
|
|||||||
private readonly inputs: Inputs;
|
private readonly inputs: Inputs;
|
||||||
private readonly context: Context;
|
private readonly context: Context;
|
||||||
private readonly repo: ReposGetResponseData;
|
private readonly repo: ReposGetResponseData;
|
||||||
|
private readonly images: icl.Image[];
|
||||||
private readonly tags: tcl.Tag[];
|
private readonly tags: tcl.Tag[];
|
||||||
private readonly flavor: fcl.Flavor;
|
private readonly flavor: fcl.Flavor;
|
||||||
private readonly date: Date;
|
private readonly date: Date;
|
||||||
@@ -30,13 +32,19 @@ export class Meta {
|
|||||||
constructor(inputs: Inputs, context: Context, repo: ReposGetResponseData) {
|
constructor(inputs: Inputs, context: Context, repo: ReposGetResponseData) {
|
||||||
// Needs to override Git reference with pr ref instead of upstream branch ref
|
// Needs to override Git reference with pr ref instead of upstream branch ref
|
||||||
// for pull_request_target event
|
// 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)) {
|
if (/pull_request_target/.test(context.eventName)) {
|
||||||
context.ref = `refs/pull/${context.payload.number}/merge`;
|
context.ref = `refs/pull/${context.payload.number}/merge`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
this.inputs = inputs;
|
this.inputs = inputs;
|
||||||
this.context = context;
|
this.context = context;
|
||||||
this.repo = repo;
|
this.repo = repo;
|
||||||
|
this.images = icl.Transform(inputs.images);
|
||||||
this.tags = tcl.Transform(inputs.tags);
|
this.tags = tcl.Transform(inputs.tags);
|
||||||
this.flavor = fcl.Transform(inputs.flavor);
|
this.flavor = fcl.Transform(inputs.flavor);
|
||||||
this.date = new Date();
|
this.date = new Date();
|
||||||
@@ -51,7 +59,11 @@ export class Meta {
|
|||||||
};
|
};
|
||||||
|
|
||||||
for (const tag of this.tags) {
|
for (const tag of this.tags) {
|
||||||
if (!/true/i.test(tag.attrs['enable'])) {
|
const enabled = this.setGlobalExp(tag.attrs['enable']);
|
||||||
|
if (!['true', 'false'].includes(enabled)) {
|
||||||
|
throw new Error(`Invalid value for enable attribute: ${enabled}`);
|
||||||
|
}
|
||||||
|
if (!/true/i.test(enabled)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
switch (tag.type) {
|
switch (tag.type) {
|
||||||
@@ -138,7 +150,7 @@ export class Meta {
|
|||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
let latest: boolean = false;
|
let latest = false;
|
||||||
const sver = semver.parse(vraw, {
|
const sver = semver.parse(vraw, {
|
||||||
includePrerelease: true
|
includePrerelease: true
|
||||||
});
|
});
|
||||||
@@ -172,7 +184,7 @@ export class Meta {
|
|||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
let latest: boolean = false;
|
let latest = false;
|
||||||
const pver = pep440.explain(vraw);
|
const pver = pep440.explain(vraw);
|
||||||
if (pver.is_prerelease || pver.is_postrelease || pver.is_devrelease) {
|
if (pver.is_prerelease || pver.is_postrelease || pver.is_devrelease) {
|
||||||
if (Meta.isRawStatement(tag.attrs['pattern'])) {
|
if (Meta.isRawStatement(tag.attrs['pattern'])) {
|
||||||
@@ -216,7 +228,7 @@ export class Meta {
|
|||||||
if (tag.attrs['value'].length > 0) {
|
if (tag.attrs['value'].length > 0) {
|
||||||
vraw = this.setGlobalExp(tag.attrs['value']);
|
vraw = this.setGlobalExp(tag.attrs['value']);
|
||||||
} else {
|
} else {
|
||||||
vraw = this.context.ref.replace(/^refs\/tags\//g, '').replace(/\//g, '-');
|
vraw = this.context.ref.replace(/^refs\/tags\//g, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
let tmatch;
|
let tmatch;
|
||||||
@@ -243,7 +255,7 @@ export class Meta {
|
|||||||
if (!/^refs\/heads\//.test(this.context.ref)) {
|
if (!/^refs\/heads\//.test(this.context.ref)) {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
const vraw = this.setValue(this.context.ref.replace(/^refs\/heads\//g, '').replace(/[^a-zA-Z0-9._-]+/g, '-'), tag);
|
const vraw = this.setValue(this.context.ref.replace(/^refs\/heads\//g, ''), tag);
|
||||||
return Meta.setVersion(version, vraw, this.flavor.latest == 'auto' ? false : this.flavor.latest == 'true');
|
return Meta.setVersion(version, vraw, this.flavor.latest == 'auto' ? false : this.flavor.latest == 'true');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -251,7 +263,7 @@ export class Meta {
|
|||||||
if (!/^refs\/tags\//.test(this.context.ref)) {
|
if (!/^refs\/tags\//.test(this.context.ref)) {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
const vraw = this.setValue(this.context.ref.replace(/^refs\/tags\//g, '').replace(/\//g, '-'), tag);
|
const vraw = this.setValue(this.context.ref.replace(/^refs\/tags\//g, ''), tag);
|
||||||
return Meta.setVersion(version, vraw, this.flavor.latest == 'auto' ? true : this.flavor.latest == 'true');
|
return Meta.setVersion(version, vraw, this.flavor.latest == 'auto' ? true : this.flavor.latest == 'true');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -269,7 +281,7 @@ export class Meta {
|
|||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
let val = this.context.ref.replace(/^refs\/heads\//g, '').replace(/[^a-zA-Z0-9._-]+/g, '-');
|
const val = this.context.ref.replace(/^refs\/heads\//g, '');
|
||||||
if (tag.attrs['branch'].length == 0) {
|
if (tag.attrs['branch'].length == 0) {
|
||||||
tag.attrs['branch'] = this.repo.default_branch;
|
tag.attrs['branch'] = this.repo.default_branch;
|
||||||
}
|
}
|
||||||
@@ -293,7 +305,7 @@ export class Meta {
|
|||||||
|
|
||||||
let val = this.context.sha;
|
let val = this.context.sha;
|
||||||
if (tag.attrs['format'] === tcl.ShaFormat.Short) {
|
if (tag.attrs['format'] === tcl.ShaFormat.Short) {
|
||||||
val = this.context.sha.substr(0, 7);
|
val = this.context.sha.substring(0, 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
const vraw = this.setValue(val, tag);
|
const vraw = this.setValue(val, tag);
|
||||||
@@ -304,6 +316,7 @@ export class Meta {
|
|||||||
if (val.length == 0) {
|
if (val.length == 0) {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
val = Meta.sanitizeTag(val);
|
||||||
if (version.main == undefined) {
|
if (version.main == undefined) {
|
||||||
version.main = val;
|
version.main = val;
|
||||||
} else if (val !== version.main) {
|
} else if (val !== version.main) {
|
||||||
@@ -328,12 +341,12 @@ export class Meta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private setValue(val: string, tag: tcl.Tag): string {
|
private setValue(val: string, tag: tcl.Tag): string {
|
||||||
if (tag.attrs.hasOwnProperty('prefix')) {
|
if (Object.prototype.hasOwnProperty.call(tag.attrs, 'prefix')) {
|
||||||
val = `${this.setGlobalExp(tag.attrs['prefix'])}${val}`;
|
val = `${this.setGlobalExp(tag.attrs['prefix'])}${val}`;
|
||||||
} else if (this.flavor.prefix.length > 0) {
|
} else if (this.flavor.prefix.length > 0) {
|
||||||
val = `${this.setGlobalExp(this.flavor.prefix)}${val}`;
|
val = `${this.setGlobalExp(this.flavor.prefix)}${val}`;
|
||||||
}
|
}
|
||||||
if (tag.attrs.hasOwnProperty('suffix')) {
|
if (Object.prototype.hasOwnProperty.call(tag.attrs, 'suffix')) {
|
||||||
val = `${val}${this.setGlobalExp(tag.attrs['suffix'])}`;
|
val = `${val}${this.setGlobalExp(tag.attrs['suffix'])}`;
|
||||||
} else if (this.flavor.suffix.length > 0) {
|
} else if (this.flavor.suffix.length > 0) {
|
||||||
val = `${val}${this.setGlobalExp(this.flavor.suffix)}`;
|
val = `${val}${this.setGlobalExp(this.flavor.suffix)}`;
|
||||||
@@ -349,53 +362,87 @@ export class Meta {
|
|||||||
if (!/^refs\/heads\//.test(ctx.ref)) {
|
if (!/^refs\/heads\//.test(ctx.ref)) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
return ctx.ref.replace(/^refs\/heads\//g, '').replace(/[^a-zA-Z0-9._-]+/g, '-');
|
return ctx.ref.replace(/^refs\/heads\//g, '');
|
||||||
},
|
},
|
||||||
tag: function () {
|
tag: function () {
|
||||||
if (!/^refs\/tags\//.test(ctx.ref)) {
|
if (!/^refs\/tags\//.test(ctx.ref)) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
return ctx.ref.replace(/^refs\/tags\//g, '').replace(/\//g, '-');
|
return ctx.ref.replace(/^refs\/tags\//g, '');
|
||||||
},
|
},
|
||||||
sha: function () {
|
sha: function () {
|
||||||
return ctx.sha.substr(0, 7);
|
return ctx.sha.substring(0, 7);
|
||||||
},
|
},
|
||||||
base_ref: function () {
|
base_ref: function () {
|
||||||
if (/^refs\/tags\//.test(ctx.ref)) {
|
if (/^refs\/tags\//.test(ctx.ref) && ctx.payload?.base_ref != undefined) {
|
||||||
return ctx.payload?.base_ref.replace(/^refs\/heads\//g, '').replace(/\//g, '-');
|
return ctx.payload.base_ref.replace(/^refs\/heads\//g, '');
|
||||||
}
|
}
|
||||||
if (/^refs\/pull\//.test(ctx.ref)) {
|
// FIXME: keep this for backward compatibility even if doesn't always seem
|
||||||
return ctx.payload?.pull_request?.base?.ref;
|
// to return the expected branch. See the comment below.
|
||||||
|
if (/^refs\/pull\//.test(ctx.ref) && ctx.payload?.pull_request?.base?.ref != undefined) {
|
||||||
|
return ctx.payload.pull_request.base.ref;
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
|
is_default_branch: function () {
|
||||||
|
const branch = ctx.ref.replace(/^refs\/heads\//g, '');
|
||||||
|
// TODO: "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
|
||||||
|
// more context: https://github.com/docker/metadata-action/pull/192#discussion_r854673012
|
||||||
|
// if (/^refs\/tags\//.test(ctx.ref) && ctx.payload?.base_ref != undefined) {
|
||||||
|
// branch = ctx.payload.base_ref.replace(/^refs\/heads\//g, '');
|
||||||
|
// }
|
||||||
|
if (branch == undefined || branch.length == 0) {
|
||||||
|
return 'false';
|
||||||
|
}
|
||||||
|
if (ctx.payload?.repository?.default_branch == branch) {
|
||||||
|
return 'true';
|
||||||
|
}
|
||||||
|
// following events always trigger for last commit on default branch
|
||||||
|
// https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
|
||||||
|
if (/create/.test(ctx.eventName) || /discussion/.test(ctx.eventName) || /issues/.test(ctx.eventName) || /schedule/.test(ctx.eventName)) {
|
||||||
|
return 'true';
|
||||||
|
}
|
||||||
|
return 'false';
|
||||||
|
},
|
||||||
date: function (format) {
|
date: function (format) {
|
||||||
return moment(currentDate).utc().format(format);
|
return moment(currentDate).utc().format(format);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private getImageNames(): Array<string> {
|
||||||
|
const images: Array<string> = [];
|
||||||
|
for (const image of this.images) {
|
||||||
|
if (!image.enable) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
images.push(Meta.sanitizeImageName(image.name));
|
||||||
|
}
|
||||||
|
return images;
|
||||||
|
}
|
||||||
|
|
||||||
public getTags(): Array<string> {
|
public getTags(): Array<string> {
|
||||||
if (!this.version.main) {
|
if (!this.version.main) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
const tags: Array<string> = [];
|
||||||
let tags: Array<string> = [];
|
for (const imageName of this.getImageNames()) {
|
||||||
for (const image of this.inputs.images) {
|
tags.push(`${imageName}:${this.version.main}`);
|
||||||
const imageLc = image.toLowerCase();
|
|
||||||
tags.push(`${imageLc}:${this.version.main}`);
|
|
||||||
for (const partial of this.version.partial) {
|
for (const partial of this.version.partial) {
|
||||||
tags.push(`${imageLc}:${partial}`);
|
tags.push(`${imageName}:${partial}`);
|
||||||
}
|
}
|
||||||
if (this.version.latest) {
|
if (this.version.latest) {
|
||||||
tags.push(`${imageLc}:${this.flavor.prefixLatest ? this.flavor.prefix : ''}latest${this.flavor.suffixLatest ? this.flavor.suffix : ''}`);
|
const latestTag = `${this.flavor.prefixLatest ? this.flavor.prefix : ''}latest${this.flavor.suffixLatest ? this.flavor.suffix : ''}`;
|
||||||
|
tags.push(`${imageName}:${Meta.sanitizeTag(latestTag)}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return tags;
|
return tags;
|
||||||
}
|
}
|
||||||
|
|
||||||
public getLabels(): Array<string> {
|
public getLabels(): Array<string> {
|
||||||
let labels: Array<string> = [
|
const labels: Array<string> = [
|
||||||
`org.opencontainers.image.title=${this.repo.name || ''}`,
|
`org.opencontainers.image.title=${this.repo.name || ''}`,
|
||||||
`org.opencontainers.image.description=${this.repo.description || ''}`,
|
`org.opencontainers.image.description=${this.repo.description || ''}`,
|
||||||
`org.opencontainers.image.url=${this.repo.html_url || ''}`,
|
`org.opencontainers.image.url=${this.repo.html_url || ''}`,
|
||||||
@@ -409,7 +456,7 @@ export class Meta {
|
|||||||
return labels;
|
return labels;
|
||||||
}
|
}
|
||||||
|
|
||||||
public getJSON(): {} {
|
public getJSON(): unknown {
|
||||||
return {
|
return {
|
||||||
tags: this.getTags(),
|
tags: this.getTags(),
|
||||||
labels: this.getLabels().reduce((res, label) => {
|
labels: this.getLabels().reduce((res, label) => {
|
||||||
@@ -441,7 +488,7 @@ export class Meta {
|
|||||||
return res;
|
return res;
|
||||||
}, {}),
|
}, {}),
|
||||||
args: {
|
args: {
|
||||||
DOCKER_META_IMAGES: this.inputs.images.join(','),
|
DOCKER_META_IMAGES: this.getImageNames().join(','),
|
||||||
DOCKER_META_VERSION: this.version.main
|
DOCKER_META_VERSION: this.version.main
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -454,4 +501,12 @@ export class Meta {
|
|||||||
|
|
||||||
return bakeFile;
|
return bakeFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static sanitizeImageName(name: string): string {
|
||||||
|
return name.toLowerCase();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static sanitizeTag(tag: string): string {
|
||||||
|
return tag.replace(/[^a-zA-Z0-9._-]+/g, '-');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
39
src/tag.ts
39
src/tag.ts
@@ -1,4 +1,4 @@
|
|||||||
import csvparse from 'csv-parse/lib/sync';
|
import {parse} from 'csv-parse/sync';
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
|
|
||||||
export enum Type {
|
export enum Type {
|
||||||
@@ -33,7 +33,7 @@ export class Tag {
|
|||||||
|
|
||||||
public toString(): string {
|
public toString(): string {
|
||||||
const out: string[] = [`type=${this.type}`];
|
const out: string[] = [`type=${this.type}`];
|
||||||
for (let attr in this.attrs) {
|
for (const attr in this.attrs) {
|
||||||
out.push(`${attr}=${this.attrs[attr]}`);
|
out.push(`${attr}=${this.attrs[attr]}`);
|
||||||
}
|
}
|
||||||
return out.join(',');
|
return out.join(',');
|
||||||
@@ -86,9 +86,9 @@ export function Transform(inputs: string[]): Tag[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function Parse(s: string): Tag {
|
export function Parse(s: string): Tag {
|
||||||
const fields = csvparse(s, {
|
const fields = parse(s, {
|
||||||
relaxColumnCount: true,
|
relaxColumnCount: true,
|
||||||
skipLinesWithEmptyValues: true
|
skipEmptyLines: true
|
||||||
})[0];
|
})[0];
|
||||||
|
|
||||||
const tag = new Tag();
|
const tag = new Tag();
|
||||||
@@ -124,44 +124,44 @@ export function Parse(s: string): Tag {
|
|||||||
|
|
||||||
switch (tag.type) {
|
switch (tag.type) {
|
||||||
case Type.Schedule: {
|
case Type.Schedule: {
|
||||||
if (!tag.attrs.hasOwnProperty('pattern')) {
|
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'pattern')) {
|
||||||
tag.attrs['pattern'] = 'nightly';
|
tag.attrs['pattern'] = 'nightly';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Type.Semver:
|
case Type.Semver:
|
||||||
case Type.Pep440: {
|
case Type.Pep440: {
|
||||||
if (!tag.attrs.hasOwnProperty('pattern')) {
|
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'pattern')) {
|
||||||
throw new Error(`Missing pattern attribute for ${s}`);
|
throw new Error(`Missing pattern attribute for ${s}`);
|
||||||
}
|
}
|
||||||
if (!tag.attrs.hasOwnProperty('value')) {
|
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'value')) {
|
||||||
tag.attrs['value'] = '';
|
tag.attrs['value'] = '';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Type.Match: {
|
case Type.Match: {
|
||||||
if (!tag.attrs.hasOwnProperty('pattern')) {
|
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'pattern')) {
|
||||||
throw new Error(`Missing pattern attribute for ${s}`);
|
throw new Error(`Missing pattern attribute for ${s}`);
|
||||||
}
|
}
|
||||||
if (!tag.attrs.hasOwnProperty('group')) {
|
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'group')) {
|
||||||
tag.attrs['group'] = '0';
|
tag.attrs['group'] = '0';
|
||||||
}
|
}
|
||||||
if (isNaN(+tag.attrs['group'])) {
|
if (isNaN(+tag.attrs['group'])) {
|
||||||
throw new Error(`Invalid match group for ${s}`);
|
throw new Error(`Invalid match group for ${s}`);
|
||||||
}
|
}
|
||||||
if (!tag.attrs.hasOwnProperty('value')) {
|
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'value')) {
|
||||||
tag.attrs['value'] = '';
|
tag.attrs['value'] = '';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Type.Edge: {
|
case Type.Edge: {
|
||||||
if (!tag.attrs.hasOwnProperty('branch')) {
|
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'branch')) {
|
||||||
tag.attrs['branch'] = '';
|
tag.attrs['branch'] = '';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Type.Ref: {
|
case Type.Ref: {
|
||||||
if (!tag.attrs.hasOwnProperty('event')) {
|
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'event')) {
|
||||||
throw new Error(`Missing event attribute for ${s}`);
|
throw new Error(`Missing event attribute for ${s}`);
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
@@ -171,22 +171,22 @@ export function Parse(s: string): Tag {
|
|||||||
) {
|
) {
|
||||||
throw new Error(`Invalid event for ${s}`);
|
throw new Error(`Invalid event for ${s}`);
|
||||||
}
|
}
|
||||||
if (tag.attrs['event'] == RefEvent.PR && !tag.attrs.hasOwnProperty('prefix')) {
|
if (tag.attrs['event'] == RefEvent.PR && !Object.prototype.hasOwnProperty.call(tag.attrs, 'prefix')) {
|
||||||
tag.attrs['prefix'] = 'pr-';
|
tag.attrs['prefix'] = 'pr-';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Type.Raw: {
|
case Type.Raw: {
|
||||||
if (!tag.attrs.hasOwnProperty('value')) {
|
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'value')) {
|
||||||
throw new Error(`Missing value attribute for ${s}`);
|
throw new Error(`Missing value attribute for ${s}`);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Type.Sha: {
|
case Type.Sha: {
|
||||||
if (!tag.attrs.hasOwnProperty('prefix')) {
|
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'prefix')) {
|
||||||
tag.attrs['prefix'] = 'sha-';
|
tag.attrs['prefix'] = 'sha-';
|
||||||
}
|
}
|
||||||
if (!tag.attrs.hasOwnProperty('format')) {
|
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'format')) {
|
||||||
tag.attrs['format'] = ShaFormat.Short;
|
tag.attrs['format'] = ShaFormat.Short;
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
@@ -200,15 +200,12 @@ export function Parse(s: string): Tag {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!tag.attrs.hasOwnProperty('enable')) {
|
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'enable')) {
|
||||||
tag.attrs['enable'] = 'true';
|
tag.attrs['enable'] = 'true';
|
||||||
}
|
}
|
||||||
if (!tag.attrs.hasOwnProperty('priority')) {
|
if (!Object.prototype.hasOwnProperty.call(tag.attrs, 'priority')) {
|
||||||
tag.attrs['priority'] = DefaultPriorities[tag.type];
|
tag.attrs['priority'] = DefaultPriorities[tag.type];
|
||||||
}
|
}
|
||||||
if (!['true', 'false'].includes(tag.attrs['enable'])) {
|
|
||||||
throw new Error(`Invalid value for enable attribute: ${tag.attrs['enable']}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
|
# syntax=docker/dockerfile:1
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
RUN echo "Hello world!"
|
RUN echo "Hello world!"
|
||||||
|
@@ -2,20 +2,19 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es6",
|
"target": "es6",
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"lib": [
|
|
||||||
"es6",
|
|
||||||
"dom"
|
|
||||||
],
|
|
||||||
"newLine": "lf",
|
"newLine": "lf",
|
||||||
"outDir": "./lib",
|
"outDir": "./lib",
|
||||||
"rootDir": "./src",
|
"rootDir": "./src",
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"esModuleInterop": true,
|
"resolveJsonModule": true,
|
||||||
"sourceMap": true
|
"useUnknownInCatchVariables": false,
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"**/*.test.ts"
|
"**/*.test.ts",
|
||||||
|
"jest.config.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user