Skip to content

Commit

Permalink
enhance demoy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
wurstbrot authored Jan 11, 2025
1 parent 118134a commit 0a29395
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/demo.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
name: Demo scheduled Run of the Collector

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
- cron: "0 0 * * *" # Runs at 00:00 UTC every day
workflow_dispatch: # Allows manual triggering

jobs:
heroku:
deploy:
if: github.repository == 'devsecopsmaturitymodel/collector-confluence' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
environment: heroku

steps:
- name: "Check out Git repository"
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
- name: "Set Heroku app & branch for ${{ github.ref }}"
- name: Checkout repository
uses: actions/checkout@v4

- name: Set Heroku branch
run: |
echo $GITHUB_REF
echo "HEROKU_BRANCH=main" >> $GITHUB_ENV
- name: "Deploy ${{ github.ref }} to Heroku"
uses: akhileshns/heroku-deploy@9fd0f9faae4aa93a38d6f5e25b9128589f1371b0 #v3.12.14
- name: Deploy to Heroku
uses: akhileshns/[email protected]
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: "collector-confluence"
heroku_email: [email protected]
branch: "main"
# usedocker: true
branch: ${{ env.HEROKU_BRANCH }}

0 comments on commit 0a29395

Please sign in to comment.