From e1327376a605f72474909c70b1cce181f8d5d8c3 Mon Sep 17 00:00:00 2001 From: Murdo <109604278+murdo-moj@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:51:47 +0100 Subject: [PATCH] Automate creation of tickets to deploy to prod (#807) * Create issue for prod deployment Co-authored-by: Tom Webber <80110358+tom-webber@users.noreply.github.com> --- .../workflows/prod-deploys-create-issue.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/prod-deploys-create-issue.yml diff --git a/.github/workflows/prod-deploys-create-issue.yml b/.github/workflows/prod-deploys-create-issue.yml new file mode 100644 index 00000000..5fbead1f --- /dev/null +++ b/.github/workflows/prod-deploys-create-issue.yml @@ -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}"