File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change 11name : Demo scheduled Run of the Collector
2-
32on :
43 schedule :
5- - cron : " 0 0 * * *"
6- workflow_dispatch :
4+ - cron : " 0 0 * * *" # Runs at 00:00 UTC every day
5+ workflow_dispatch : # Allows manual triggering
76
87jobs :
9- heroku :
8+ deploy :
109 if : github.repository == 'devsecopsmaturitymodel/collector-confluence' && github.ref == 'refs/heads/main'
1110 runs-on : ubuntu-latest
1211 environment : heroku
12+
1313 steps :
14- - name : " Check out Git repository"
15- uses : actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
16- - name : " Set Heroku app & branch for ${{ github.ref }}"
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+
17+ - name : Set Heroku branch
1718 run : |
18- echo $GITHUB_REF
1919 echo "HEROKU_BRANCH=main" >> $GITHUB_ENV
20- - name : " Deploy ${{ github.ref }} to Heroku"
21- uses : akhileshns/heroku-deploy@9fd0f9faae4aa93a38d6f5e25b9128589f1371b0 # v3.12.14
20+
21+ - name : Deploy to Heroku
22+ uses :
akhileshns/[email protected] 2223 with :
2324 heroku_api_key : ${{ secrets.HEROKU_API_KEY }}
2425 heroku_app_name : " collector-confluence"
252626- branch : " main "
27- # usedocker: true
27+ branch : ${{ env.HEROKU_BRANCH }}
28+
You can’t perform that action at this time.
0 commit comments