From 8b5eef00bd68a6d7a2f65f62c50aa717e465c2a9 Mon Sep 17 00:00:00 2001 From: Ivan Kuznetsov Date: Thu, 21 Mar 2024 12:18:05 +0200 Subject: [PATCH] fix --- .github/actions/build-n-upload-action/Dockerfile | 7 +++---- .github/workflows/build.yml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/actions/build-n-upload-action/Dockerfile b/.github/actions/build-n-upload-action/Dockerfile index 0ce7f71..89ec7f9 100644 --- a/.github/actions/build-n-upload-action/Dockerfile +++ b/.github/actions/build-n-upload-action/Dockerfile @@ -4,8 +4,7 @@ FROM ubuntu:22.04 ENV TZ=Europe/Helsinki # Set environment variables -ENV cachix_toke=${cachix_token2} \ - github_token=${github_token} +ENV GITHUB_TOKEN=${GITHUB_TOKEN} RUN apt-get update && apt-get -y install curl xz-utils git @@ -22,8 +21,8 @@ COPY entrypoint.sh /entrypoint.sh #RUN --mount=type=secret,id=cachix_token2 \ # cat /run/secrets/cachix_token2 -RUN echo "cachix_token: $cachix_token" -RUN echo "github token: $github_token" +#RUN echo "cachix_token: $cachix_token" +RUN echo "github token: $GITHUB_TOKEN" # Code file to execute when the docker container starts up (`entrypoint.sh`) ENTRYPOINT ["/entrypoint.sh"] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 848d24c..46f512d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: "cachix_token2 = here token example" "github_token=${{ secrets.GITHUB_TOKEN }}" env: - github_token: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the output from the `hello` step - name: Upload Build Artifacts run: |