File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 59
59
branch : ${{ github.head_ref || github.ref_name }}
60
60
env :
61
61
GITHUB_TOKEN : ${{secrets.ACCESS_TOKEN}}
62
+ heroku :
63
+ if : github.repository == 'devsecopsmaturitymodel/DevSecOps-MaturityModel' && github.event_name == 'push' && github.ref == 'refs/heads/master'
64
+ runs-on : ubuntu-latest
65
+ steps :
66
+ - name : " Check out Git repository"
67
+ uses : actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
68
+ - name : " Set Heroku app & branch for ${{ github.ref }}"
69
+ run : |
70
+ if [ "$GITHUB_REF" == "refs/heads/master" ]; then
71
+ echo "HEROKU_APP=dsomm" >> $GITHUB_ENV
72
+ echo "HEROKU_BRANCH=master" >> $GITHUB_ENV
73
+ fi
74
+ - name : " Deploy ${{ github.ref }} to Heroku"
75
+ uses : akhileshns/heroku-deploy@9fd0f9faae4aa93a38d6f5e25b9128589f1371b0 # v3.12.14
76
+ with :
77
+ heroku_api_key : ${{ secrets.HEROKU_API_KEY }}
78
+ heroku_app_name : ${{ env.HEROKU_APP }}
79
+ heroku_email : timo.pagel@owasp.org
80
+ branch : ${{ env.HEROKU_BRANCH }}
You can’t perform that action at this time.
0 commit comments