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 1
1
name : Demo scheduled Run of the Collector
2
-
3
2
on :
4
3
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
7
6
8
7
jobs :
9
- heroku :
8
+ deploy :
10
9
if : github.repository == 'devsecopsmaturitymodel/collector-confluence' && github.ref == 'refs/heads/main'
11
10
runs-on : ubuntu-latest
12
11
environment : heroku
12
+
13
13
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
17
18
run : |
18
- echo $GITHUB_REF
19
19
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/heroku-deploy@v3.12.14
22
23
with :
23
24
heroku_api_key : ${{ secrets.HEROKU_API_KEY }}
24
25
heroku_app_name : " collector-confluence"
25
26
heroku_email : timo.pagel@owasp.org
26
- branch : " main "
27
- # usedocker: true
27
+ branch : ${{ env.HEROKU_BRANCH }}
28
+
You can’t perform that action at this time.
0 commit comments