File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1818 steps :
1919 - name : git checkout
2020 uses : actions/checkout@v4
21+ with :
22+ fetch-depth : 0
2123
2224 - name : deploy to Heroku
2325 run : |
2628 git push --verbose https://heroku:${{ secrets.HEROKU_API_KEY }}@git.heroku.com/${{ secrets.HEROKU_APP_NAME }}.git main:main
2729
2830 - name : update env vars
29- run : heroku config:set --app ${{ secrets.HEROKU_APP_NAME }} "COMMIT=${GITHUB_SHA:0:7}" "LASTMOD=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
31+ run : |
32+ echo "INFO: installing Heroku CLI"
33+ npm i -g heroku
34+ echo "INFO: updating env vars"
35+ heroku config:set --app ${{ secrets.HEROKU_APP_NAME }} "COMMIT=${GITHUB_SHA:0:7}" "LASTMOD=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
3036 env :
3137 HEROKU_API_KEY : ${{ secrets.HEROKU_API_KEY }}
You can’t perform that action at this time.
0 commit comments