From 6e19806e47dc3021da2a387e0381953c4d79ae62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darko=20Kri=C5=BEi=C4=87?= Date: Sat, 2 Mar 2024 21:02:19 +0100 Subject: [PATCH] Put /template to / --- Dockerfile | 3 +-- action.yaml | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 34068f2..1d1377d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ FROM golang:1.22 -COPY template /github/workspace/template -RUN find /github/workspace -print +COPY /template / WORKDIR /app COPY . /app RUN go build . diff --git a/action.yaml b/action.yaml index de1a11a..f69e438 100644 --- a/action.yaml +++ b/action.yaml @@ -38,18 +38,18 @@ inputs: template-file: description: 'The template file to use for the overview' required: true - default: '/github/workspace/template/default.tpl' + default: '/template/default.tpl' runs: using: 'docker' image: 'Dockerfile' - args: - - --organization=${{ inputs.organization }} - - --repositories=${{ inputs.repositories }} - - --environments=${{ inputs.environments }} - - --environment-links=${{ inputs.environment-links }} - - --verbose=${{ inputs.verbose }} - - --target-repository=${{ inputs.target-repository }} - - --target-repository-file=${{ inputs.target-repository-file }} - - --github-token=${{ inputs.github-token }} - - --title=${{ inputs.title }} - - --template-file=${{ inputs.template-file }} + env: + ORGANIZATION: ${{ inputs.organization }} + REPOSITORIES: ${{ inputs.repositories }} + ENVIRONMENTS: ${{ inputs.environments }} + ENVIRONMENT_LINKS: ${{ inputs.environment-links }} + VERBOSE: ${{ inputs.verbose }} + TARGET_REPOSITORY: ${{ inputs.target-repository }} + TARGET_REPOSITORY_FILE: ${{ inputs.target-repository-file }} + GITHUB_TOKEN: ${{ inputs.github-token }} + TITLE: ${{ inputs.title }} + TEMPLATE_FILE: ${{ inputs.template-file }}