Skip to content

Commit

Permalink
fix: fix the failure handler and update release runner to run every h…
Browse files Browse the repository at this point in the history
…our from Monday to Friday (#211)
  • Loading branch information
andreaangiolillo committed Sep 2, 2024
1 parent 50c743f commit 80ea6e3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/GH_ACTION_ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
title: "({{env.TARGET_ENV}}) The {{env.RELEASE_NAME}} Release has failed. :scream_cat:"
labels: failed-release
---
See https://github.com/{{tools.context.issue}}/actions/runs/{{env.GITHUB_RUN_ID}}
See https://github.com/mongodb/openapi/actions/runs/{{env.GITHUB_RUN_ID}}

3 changes: 2 additions & 1 deletion .github/workflows/release-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ jobs:
env:
target_env: ${{ inputs.env }}
target_branch: ${{ inputs.branch }}
run_id: ${{ github.run_id }}
with:
commit_message: "(${{env.target_env}}) Release API Changelog :rocket:"
commit_message: "(${{env.target_env}}) Release API Changelog :rocket:. See https://github.com/mongodb/openapi/actions/runs/${{env.run_id}}."
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
branch: ${{env.target_branch}}
file_pattern: "changelog/*"
2 changes: 1 addition & 1 deletion .github/workflows/release-spec-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
default: 'dev'
required: false
schedule:
- cron: '0 * * * *' # Run every hour
- cron: '0 * * * 1-5' # Run every hour from Monday to Friday
permissions:
contents: write
pull-requests: write
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ jobs:
env:
target_env: ${{ inputs.env }}
target_branch: ${{ inputs.branch }}
run_id: ${{ github.run_id }}
with:
commit_message: "(${{env.target_env}}) Release OpenAPI Spec :rocket:"
commit_message: "(${{env.target_env}}) Release OpenAPI Spec :rocket:. See https://github.com/mongodb/openapi/actions/runs/${{env.run_id}}."
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
branch: ${{env.target_branch}}
file_pattern: "openapi/*"
Expand Down

0 comments on commit 80ea6e3

Please sign in to comment.