Skip to content

Commit 0a29395

Browse files
authored
enhance demoy.yaml
1 parent 118134a commit 0a29395

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/demo.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
name: Demo scheduled Run of the Collector
2-
32
on:
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

87
jobs:
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/heroku-deploy@v3.12.14
2223
with:
2324
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
2425
heroku_app_name: "collector-confluence"
2526
heroku_email: timo.pagel@owasp.org
26-
branch: "main"
27-
# usedocker: true
27+
branch: ${{ env.HEROKU_BRANCH }}
28+

0 commit comments

Comments
 (0)