From 8720a5eefe62235085fa8c090ea3f02a5d07f56c Mon Sep 17 00:00:00 2001 From: Nicholas Kwon Date: Wed, 25 May 2022 14:05:19 -0700 Subject: [PATCH 1/2] Augment GHA .env file --- .github/workflows/create_release_dev.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create_release_dev.yml b/.github/workflows/create_release_dev.yml index 8ebf064e6..123b3014d 100644 --- a/.github/workflows/create_release_dev.yml +++ b/.github/workflows/create_release_dev.yml @@ -4,7 +4,7 @@ on: branches: - dev paths: - - 'server/api/**' + - "server/api/**" jobs: build: name: Create Docker Image @@ -13,11 +13,15 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - name: Get branch name - uses: nelonoel/branch-name@v1.0.1 + uses: nelonoel/branch-name@v1.0.1 - name: Setup environment run: | echo GITHUB_CODE_VERSION=${{ env.BRANCH_NAME }} >> server/api/.env echo GITHUB_SHA=${{ github.sha }} >> server/api/.env + echo GITHUB_TOKEN=${{ secrets.GH_ISSUES_TOKEN }} >> server/api/.env + echo GITHUB_PROJECT_URL=${{ secrets.GH_PROJECT_URL }} >> server/api/.env + echo GITHUB_ISSUES_URL=https://api.github.com/repos/hackforla/311-data-support/issues >> server/api/.env + echo SENDGRID_API_KEY=${{ secrets.SENDGRID_API_KEY }} >> server/api/.env echo DEBUG=True >> server/api/.env echo DB_ECHO=True >> server/api/.env echo API_ALLOWED_ORIGINS=[https://dev.311-data.org,http://localhost:3000,https://311-data.matt-webster.net] >> server/api/.env From 1b034d906f61fd77acfd541b27b7bed3c8e212cb Mon Sep 17 00:00:00 2001 From: Nicholas Kwon Date: Wed, 25 May 2022 14:13:05 -0700 Subject: [PATCH 2/2] Add workflow_dispatch for manual trigger --- .github/workflows/create_release_dev.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/create_release_dev.yml b/.github/workflows/create_release_dev.yml index 123b3014d..530fbfa88 100644 --- a/.github/workflows/create_release_dev.yml +++ b/.github/workflows/create_release_dev.yml @@ -5,6 +5,8 @@ on: - dev paths: - "server/api/**" + workflow_dispatch: + jobs: build: name: Create Docker Image