From 1c31b46bc25de74a9e4754e938a3eda97d6cf5c1 Mon Sep 17 00:00:00 2001 From: Matthias Kay Date: Sat, 11 May 2024 20:07:32 +0200 Subject: [PATCH] update workflows to latest version --- .github/workflows/java.yml | 11 +++++++++++ .github/workflows/linter.yml | 11 +++++++++++ .github/workflows/pull_request.yml | 17 +++++++++++++++++ .github/workflows/release.yml | 13 +++++++++++++ .github/workflows/release_dry_run.yml | 13 +++++++++++++ .github/workflows/renovate_auto_approve.yml | 11 +++++++++++ .github/workflows/slash_ops_command_help.yml | 13 +++++++++++++ .../workflows/slash_ops_comment_dispatch.yml | 13 +++++++++++++ .github/workflows/spelling.yml | 11 +++++++++++ .github/workflows/stale.yml | 12 ++++++++++++ .github/workflows/welcome_message.yml | 13 +++++++++++++ 11 files changed, 138 insertions(+) create mode 100644 .github/workflows/java.yml create mode 100644 .github/workflows/linter.yml create mode 100644 .github/workflows/pull_request.yml create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/release_dry_run.yml create mode 100644 .github/workflows/renovate_auto_approve.yml create mode 100644 .github/workflows/slash_ops_command_help.yml create mode 100644 .github/workflows/slash_ops_comment_dispatch.yml create mode 100644 .github/workflows/spelling.yml create mode 100644 .github/workflows/stale.yml create mode 100644 .github/workflows/welcome_message.yml diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml new file mode 100644 index 0000000..9c7abbe --- /dev/null +++ b/.github/workflows/java.yml @@ -0,0 +1,11 @@ +--- +name: Build Java PR + +# yamllint disable-line rule:truthy +on: + pull_request: + +jobs: + default: + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/maven_java_callable.yml@c34ea75ff9e52d92a9433a19dd9fcd473bac2eee + secrets: inherit diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..0116221 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,11 @@ +--- +name: Lint files + +# yamllint disable-line rule:truthy +on: + pull_request: + +jobs: + default: + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_linter_callable.yml@c34ea75ff9e52d92a9433a19dd9fcd473bac2eee + secrets: inherit diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..3a36fef --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,17 @@ +--- +name: "Pull Request" + +# yamllint disable-line rule:truthy +on: + pull_request_target: + types: + - opened + - edited + - synchronize + branches-ignore: + - "release-please--branches--*" + +jobs: + default: + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_pull_request_callable.yml@c34ea75ff9e52d92a9433a19dd9fcd473bac2eee + secrets: inherit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..68efe3b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,13 @@ +--- +name: Release + +# yamllint disable-line rule:truthy +on: + push: + branches: + - main + +jobs: + default: + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/maven_release_callable.yml@c34ea75ff9e52d92a9433a19dd9fcd473bac2eee + secrets: inherit diff --git a/.github/workflows/release_dry_run.yml b/.github/workflows/release_dry_run.yml new file mode 100644 index 0000000..8ae1302 --- /dev/null +++ b/.github/workflows/release_dry_run.yml @@ -0,0 +1,13 @@ +--- +name: Release Test + +# yamllint disable-line rule:truthy +on: + push: + branches: + - release-dry-run + +jobs: + default: + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/maven_release_dry_run_callable.yml@c34ea75ff9e52d92a9433a19dd9fcd473bac2eee + secrets: inherit diff --git a/.github/workflows/renovate_auto_approve.yml b/.github/workflows/renovate_auto_approve.yml new file mode 100644 index 0000000..0f5b931 --- /dev/null +++ b/.github/workflows/renovate_auto_approve.yml @@ -0,0 +1,11 @@ +--- +name: Approve all Renovate PRs automatically + +# yamllint disable-line rule:truthy +on: + pull_request_target + +jobs: + default: + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_renovate_auto_approve_callable.yml@c34ea75ff9e52d92a9433a19dd9fcd473bac2eee + secrets: inherit diff --git a/.github/workflows/slash_ops_command_help.yml b/.github/workflows/slash_ops_command_help.yml new file mode 100644 index 0000000..67a83d3 --- /dev/null +++ b/.github/workflows/slash_ops_command_help.yml @@ -0,0 +1,13 @@ +--- +name: Execute ChatOps command + +# yamllint disable-line rule:truthy +on: + repository_dispatch: + types: + - help-command + +jobs: + default: + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_slash_ops_command_help_callable.yml@c34ea75ff9e52d92a9433a19dd9fcd473bac2eee + secrets: inherit diff --git a/.github/workflows/slash_ops_comment_dispatch.yml b/.github/workflows/slash_ops_comment_dispatch.yml new file mode 100644 index 0000000..9b58fdc --- /dev/null +++ b/.github/workflows/slash_ops_comment_dispatch.yml @@ -0,0 +1,13 @@ +--- +name: PR commented + +# yamllint disable-line rule:truthy +on: + issue_comment: + types: + - created + +jobs: + default: + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_slash_ops_comment_dispatch_callable.yml@c34ea75ff9e52d92a9433a19dd9fcd473bac2eee + secrets: inherit diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml new file mode 100644 index 0000000..8f559b3 --- /dev/null +++ b/.github/workflows/spelling.yml @@ -0,0 +1,11 @@ +--- +name: "Check spelling" + +# yamllint disable-line rule:truthy +on: + pull_request: + +jobs: + default: + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_spelling_callable.yml@c34ea75ff9e52d92a9433a19dd9fcd473bac2eee + secrets: inherit diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..72b5fb6 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,12 @@ +--- +name: "Close stale issues and PRs" + +# yamllint disable-line rule:truthy +on: + schedule: + - cron: "25 2 * * *" + +jobs: + default: + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_stale_callable.yml@c34ea75ff9e52d92a9433a19dd9fcd473bac2eee + secrets: inherit diff --git a/.github/workflows/welcome_message.yml b/.github/workflows/welcome_message.yml new file mode 100644 index 0000000..fec8d7d --- /dev/null +++ b/.github/workflows/welcome_message.yml @@ -0,0 +1,13 @@ +--- +name: PR opened + +# yamllint disable-line rule:truthy +on: + pull_request_target: + types: + - opened + +jobs: + default: + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_welcome_message_callable.yml@c34ea75ff9e52d92a9433a19dd9fcd473bac2eee + secrets: inherit