From e64a6ba5e76ccab79f5871e57fc2fdd7694e8155 Mon Sep 17 00:00:00 2001 From: South Drifted Date: Wed, 17 Jul 2024 15:08:49 +0000 Subject: [PATCH] [fix] Workflow Permission in GitHub actions --- .github/workflows/deploy-production.yml | 6 ++++-- .github/workflows/init-template.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index aceb7a1..123d5be 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -9,8 +9,8 @@ on: - v* env: ARTIFACT_PATH: /tmp/artifact.tar - BOX_NAME: next-bootstrap-ts - BOX_URL: idea2app/next-bootstrap-ts + BOX_NAME: ${{ github.event.repository.name }} + BOX_URL: ${{ github.repository }} jobs: deploy_docker_image: @@ -24,6 +24,8 @@ jobs: - name: Inject Environment variables run: | + echo "BOX_NAME=${BOX_NAME@L}" >> "${GITHUB_ENV}" + echo "BOX_URL=${BOX_URL@L}" >> "${GITHUB_ENV}" cat > .env.local <