Skip to content

Commit

Permalink
fix: use environment variables correctly without windows syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ZipingL committed Oct 28, 2023
1 parent 5956544 commit 480a1a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/canaryapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: npm run build:canary
- name: Read Build Timestamped Env from .env FILE generated
run: |
cat .env | grep "DATEMODIFIED_CODE_DEPLOYMENT" | cut -d '=' -f2 > "${{ env.DATEMODIFIED_CODE_DEPLOYMENT }}"
$DATEMODIFIED_CODE_DEPLOYMENT = $(cat .env | grep "DATEMODIFIED_CODE_DEPLOYMENT" | cut -d '=' -f2)
- name: deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand All @@ -45,5 +45,5 @@ jobs:
event_type: react_adobe_embed_code_pushed
message: |
{
"DATEMODIFIED_CODE_DEPLOYED" : "${{ env.DATEMODIFIED_CODE_DEPLOYMENT }}"
"DATEMODIFIED_CODE_DEPLOYED" : $DATEMODIFIED_CODE_DEPLOYMENT
}

0 comments on commit 480a1a6

Please sign in to comment.