Skip to content

Commit

Permalink
Automate creation of tickets to deploy to prod (#807)
Browse files Browse the repository at this point in the history
* Create issue for prod deployment

Co-authored-by: Tom Webber <[email protected]>
  • Loading branch information
murdo-moj and tom-webber authored Sep 10, 2024
1 parent a3a947a commit e132737
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/prod-deploys-create-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Create issue for push to prod
on:
schedule:
# Runs on the 1st and 15th of each month at 9AM
- cron: "0 9 1,15 * *"

jobs:
create_issue:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- uses: actions/checkout@v2

- name: Create issue
env:
label: "push to prod"
run: |
now=$(date +'%Y-%m-%d')
title=":rocket: Deploy to production: $now"
body="Deploy to production: $now"
gh issue create --title "${title}" --body "${body}" --label "${label}"

0 comments on commit e132737

Please sign in to comment.