Skip to content

Commit 4695e76

Browse files
fix: Removed unused input (#5)
fix
1 parent 373af05 commit 4695e76

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

ghcr-build-push/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,17 @@ action https://github.com/users/OWNER/packages/container/REPOSITORY/settings
1818
- name: Buil and Push
1919
uses: pagopa/github-actions-template/ghcr-build-push@v1
2020
with:
21-
branch: 'main'
2221
tag: '1.0.0'
2322
github_token: ${{ secrets.GITHUB_TOKEN }}
2423

2524
```
2625
2726
## Input
2827
29-
| Param | Description | Required | Values | Default |
30-
|--------------|-----------------------|----------|----------|---------|
31-
| branch | Branch where chekcout | **true** | `string` | |
32-
| tag | A tag for the image | **true** | `string` | |
33-
| github_token | A GitHub token | **true** | `string` | |
28+
| Param | Description | Required | Values | Default |
29+
|--------------|-------------------------------------------------|----------|----------|---------|
30+
| tag | The github tag of application to build and push | **true** | `string` | |
31+
| github_token | A GitHub token | **true** | `string` | |
3432

3533
## Output
3634

ghcr-build-push/action.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: Build and Push
22
description: "Build and push a docker image on GitHub Container Registry"
33

44
inputs:
5-
branch:
6-
required: true
7-
type: string
8-
description: Branch to build
95
tag:
106
required: true
117
type: string
@@ -21,7 +17,7 @@ runs:
2117
steps:
2218
- uses: actions/checkout@v3
2319
with:
24-
ref: ${{ inputs.branch }}
20+
ref: ${{ inputs.tag }}
2521

2622
- name: Login to GitHub Container Registry
2723
uses: docker/login-action@v2

0 commit comments

Comments
 (0)