Skip to content

Commit

Permalink
ci: Set permissions to do automated deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
elwinschmitz authored Jan 30, 2024
1 parent f682b51 commit 9732750
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deploy-private-faq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,20 @@ on:
# See: https://crontab.guru/#18_18_*_*_1-5
- cron: '42 18 * * 1-5'

permissions:
deployments: write

jobs:
build_and_deploy:
environment: 'private-faq'
if: >
github.event_name == 'workflow_dispatch' ||
github.event_name == 'push' ||
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.actor != 'dependabot[bot]') ||
github.event_name == 'schedule' ||
(
github.event_name == 'pull_request' &&
github.event.action != 'closed' &&
github.actor != 'dependabot[bot]') ||
(
github.event_name == 'issue_comment' &&
github.event.issue.number == vars.GHA_DEPLOY_TRIGGER_ISSUE &&
Expand Down

0 comments on commit 9732750

Please sign in to comment.