Skip to content

Commit

Permalink
Update deployDev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo1212 authored Oct 26, 2023
1 parent 3e1a0a7 commit 53e2731
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/deployDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,9 @@ jobs:
- name: Load .evn file from secrets
run: echo "${{ secrets.ENV_FILE }}" > .env

- name: create-json
id: create--git-info-json
uses: jsdaniell/[email protected]
with:
name: "generatedGitInfo.json"
json: "{\"gitBranch\": \"${{GITHUB_REF#refs/heads/}}\",\"gitCommitHash\": \"${{(git rev-parse --short '$GITHUB_SHA')}}\"}"
dir: 'src/'
- name: Set gitInfo file
run: |
echo "{\"gitBranch\": \"${GITHUB_REF#refs/heads/}\",\"gitCommitHash\": \"$(git rev-parse --short $GITHUB_SHA)}\"" > src/generatedGitInfo.json
- name: Read git infos
run: less src/generatedGitInfo.json
Expand Down

0 comments on commit 53e2731

Please sign in to comment.