Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile: better management of versions #117

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/apply_labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: srvaroa/labeler@master
- uses: srvaroa/labeler@versions
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ LABEL "com.github.actions.name"="Condition-based Pull Request labeller" \
"repository"="https://github.com/srvaroa/labeler"

WORKDIR /
ARG ASSET_URL=https://github.com/srvaroa/labeler/releases/download/v1.8.0/action.tar.gz
RUN wget -q -O- $ASSET_URL | tar xzvf -
ARG VERSION=v1.8.0
RUN wget -q -O- https://github.com/srvaroa/labeler/releases/download/${VERSION}/action.tar.gz | tar xzvf -
ENTRYPOINT ["/action"]
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ inputs:
fail_on_error:
default: 'false'
description: 'By default the action will never fail when an error is found during the evaluation of the labels. This is done in order to avoid disrupting CI pipelines with non-critical tasks. To override this behaviour, set this property to `true` so that any error in the evaluation of labels causes a failure of the workflow.'
version:
default: 'v1.8.0'
description: "By default the action will run with the latest published version, use this property to pin to a specific release (e.g. v1.8.0)"
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.version }}
branding:
icon: award
color: blue
Loading