.github/workflows/demo.yaml #249
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Demo scheduled Run of the Collector | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
jobs: | |
heroku: | |
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 }}" | |
run: | | |
echo $GITHUB_REF | |
echo "HEROKU_BRANCH=main" >> $GITHUB_ENV | |
- name: "Deploy ${{ github.ref }} to Heroku" | |
uses: akhileshns/heroku-deploy@9fd0f9faae4aa93a38d6f5e25b9128589f1371b0 #v3.12.14 | |
with: | |
heroku_api_key: ${{ secrets.HEROKU_API_KEY }} | |
heroku_app_name: "collector-confluence" | |
heroku_email: timo.pagel@owasp.org | |
branch: "main" | |
# usedocker: true |