From 6d4a7cd1b1dee7b4c5438de8d17af52a909c36d7 Mon Sep 17 00:00:00 2001 From: "andy.lee" Date: Mon, 6 Jan 2025 21:32:00 +0800 Subject: [PATCH] add mergify.yml Signed-off-by: andy.lee --- .github/mergify.yml | 19 +++++++++++++++++ .../workflows/build-and-upload-release.yaml | 21 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/mergify.yml create mode 100644 .github/workflows/build-and-upload-release.yaml diff --git a/.github/mergify.yml b/.github/mergify.yml new file mode 100644 index 00000000..e4b42539 --- /dev/null +++ b/.github/mergify.yml @@ -0,0 +1,19 @@ +pull_request_rules: +- name: Automatically open backport PR to release-harvester-v1.5 + conditions: + - base=master + actions: + backport: + branches: + - "release-harvester-v1.5" + assignees: + - "{{ author }}" + labels: + - "v1.5 backport PR" + +- name: Ask to resolve conflict + conditions: + - conflict + actions: + comment: + message: This pull request is now in conflict. Could you fix it @{{author}}? 🙏 \ No newline at end of file diff --git a/.github/workflows/build-and-upload-release.yaml b/.github/workflows/build-and-upload-release.yaml new file mode 100644 index 00000000..b0829606 --- /dev/null +++ b/.github/workflows/build-and-upload-release.yaml @@ -0,0 +1,21 @@ +name: Build Dashboard (Release) +on: + push: + tags: + - v[1-9].* + +jobs: + build-validation: + name: Build Test + uses: ./.github/workflows/test.yaml + build: + name: Build and Upload Package + uses: ./.github/workflows/build-and-upload.yaml + needs: + - build-validation + permissions: + contents: read + packages: write + id-token: write + with: + CI_BUILD_TAG: ${{github.ref_name}}