Skip to content

.github/workflows/demo.yaml #249

.github/workflows/demo.yaml

.github/workflows/demo.yaml #249

Workflow file for this run

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