From 80ea6e3453282aedddfcb6a8f493f63f29444d23 Mon Sep 17 00:00:00 2001 From: Andrea Angiolillo Date: Mon, 2 Sep 2024 15:55:28 +0100 Subject: [PATCH] fix: fix the failure handler and update release runner to run every hour from Monday to Friday (#211) --- .github/ISSUE_TEMPLATE/GH_ACTION_ISSUE_TEMPLATE.md | 2 +- .github/workflows/release-changelog.yml | 3 ++- .github/workflows/release-spec-runner.yml | 2 +- .github/workflows/release-spec.yml | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/GH_ACTION_ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE/GH_ACTION_ISSUE_TEMPLATE.md index 7fa134989..80715c5c0 100644 --- a/.github/ISSUE_TEMPLATE/GH_ACTION_ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE/GH_ACTION_ISSUE_TEMPLATE.md @@ -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}} diff --git a/.github/workflows/release-changelog.yml b/.github/workflows/release-changelog.yml index 9ecdd9aeb..c65405510 100644 --- a/.github/workflows/release-changelog.yml +++ b/.github/workflows/release-changelog.yml @@ -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] " branch: ${{env.target_branch}} file_pattern: "changelog/*" diff --git a/.github/workflows/release-spec-runner.yml b/.github/workflows/release-spec-runner.yml index ea09ed40a..27c30ce72 100644 --- a/.github/workflows/release-spec-runner.yml +++ b/.github/workflows/release-spec-runner.yml @@ -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 diff --git a/.github/workflows/release-spec.yml b/.github/workflows/release-spec.yml index 28fd3b9a3..65b5ab249 100644 --- a/.github/workflows/release-spec.yml +++ b/.github/workflows/release-spec.yml @@ -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] " branch: ${{env.target_branch}} file_pattern: "openapi/*"