From bfd930d6819d6193b1269f7360363b53ec4706d1 Mon Sep 17 00:00:00 2001 From: AF Date: Thu, 25 Jul 2024 11:15:31 +0200 Subject: [PATCH] Add opex workflows for trial system --- .github/workflows/opex_api_trial_system.yml | 23 ++++++++++++++ .../workflows/pr_opex_api_trial_system.yml | 31 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 .github/workflows/opex_api_trial_system.yml create mode 100644 .github/workflows/pr_opex_api_trial_system.yml diff --git a/.github/workflows/opex_api_trial_system.yml b/.github/workflows/opex_api_trial_system.yml new file mode 100644 index 000000000..1e503dbcf --- /dev/null +++ b/.github/workflows/opex_api_trial_system.yml @@ -0,0 +1,23 @@ +name: Opex Dashboard api_trial_system + +on: + push: + branches: + - master + paths: + - 'openapi/generated/api_trial_system.yaml' + - '.github/workflows/opex_api_trial_system.yml' + - '.opex/api_trial_system/**' + + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }} + +jobs: + apply: + uses: ./.github/workflows/call_opex_api.yml + name: Apply changes to Production + secrets: inherit + with: + api_name: api_trial_system diff --git a/.github/workflows/pr_opex_api_trial_system.yml b/.github/workflows/pr_opex_api_trial_system.yml new file mode 100644 index 000000000..3a27a4f45 --- /dev/null +++ b/.github/workflows/pr_opex_api_trial_system.yml @@ -0,0 +1,31 @@ +name: PR - Opex Dashboard api_trial_system + +on: + pull_request: + types: + - opened + - edited + - synchronize + - reopened + branches: + - master + paths: + + - 'openapi/generated/api_trial_system.yaml' + - '.github/workflows/pr_opex_api_trial_system.yml' + - '.github/workflows/opex_api_trial_system.yml' + - '.opex/api_trial_system/**' + + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: false + +jobs: + plan: + uses: ./.github/workflows/call_pr_opex_api.yml + name: Plan changes against Production + secrets: inherit + with: + api_name: api_trial_system