Skip to content

Commit

Permalink
fix(version): current version in deployments (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ealenn authored Jun 5, 2022
1 parent 1e751f0 commit 018c24a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/heroku-deploy-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
id: extract_branch
- uses: akhileshns/[email protected]
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
Expand All @@ -19,6 +23,6 @@ jobs:
procfile: "web: npm run start:prod"
env:
HD_APP_PORT: 80
HD_APP_VERSION: ${GITHUB_REF##*/}
HD_APP_VERSION: ${{ steps.extract_branch.outputs.branch }}
HD_APP_SECRET: ${{secrets.APP_SECRET}}
HD_MONGODB_URI: ${{secrets.MONGODB_URI}}
6 changes: 5 additions & 1 deletion .github/workflows/heroku-deploy-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
id: extract_branch
- uses: akhileshns/[email protected]
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
Expand All @@ -17,6 +21,6 @@ jobs:
procfile: "web: npm run start:prod"
env:
HD_APP_PORT: 80
HD_APP_VERSION: ${GITHUB_REF##*/}
HD_APP_VERSION: ${{ steps.extract_branch.outputs.branch }}
HD_APP_SECRET: ${{secrets.APP_SECRET}}
HD_MONGODB_URI: ${{secrets.MONGODB_URI}}

0 comments on commit 018c24a

Please sign in to comment.