From c2a3b33a6a28edd167d661d4d27a160916092be4 Mon Sep 17 00:00:00 2001 From: adlzanchetta Date: Tue, 12 Mar 2024 20:28:13 -0400 Subject: [PATCH] Adds explicit environment variables to the Github Actions --- .github/workflows/autodeploy.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autodeploy.yaml b/.github/workflows/autodeploy.yaml index 39f3e46..9becc83 100644 --- a/.github/workflows/autodeploy.yaml +++ b/.github/workflows/autodeploy.yaml @@ -12,13 +12,21 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - run: echo "Testing env var AB = $AB and CD = $CD" + env: + AB: ${{ secrets.PUBLISHER_NAME }} + CD: "456" - uses: actions/setup-node@v4 with: node-version: '20.11' - run: npm install - run: git config --global user.email "${{ secrets.PUBLISHER_EMAIL }}" - run: git config --global user.name "${{ secrets.PUBLISHER_NAME }}" - - run: GIT_USER=${{ secrets.PUBLISHER_NAME }} GIT_PASS=${{ secrets.PUBLISHER_TOKEN }} GIT_USER_EMAIL=${{ secrets.PUBLISHER_EMAIL }} npm run deploy + - run: npm run deploy + env: + GIT_USER: ${{ secrets.PUBLISHER_NAME }} + GIT_PASS: ${{ secrets.PUBLISHER_TOKEN }} + GIT_USER_EMAIL: ${{ secrets.PUBLISHER_EMAIL }} - uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }}