From 7dd0b42b86ca5d876a026ddce2a1d14577f6b83b Mon Sep 17 00:00:00 2001 From: JayGhiya Date: Thu, 14 Mar 2024 17:02:57 +0530 Subject: [PATCH] feat: added github action --- .../configuration/release-please-config.json | 9 ++++++ .../release-please-manifest.json | 3 ++ .github/workflows/dev-pr-merge.yaml | 29 +++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 .github/configuration/release-please-config.json create mode 100644 .github/configuration/release-please-manifest.json create mode 100644 .github/workflows/dev-pr-merge.yaml diff --git a/.github/configuration/release-please-config.json b/.github/configuration/release-please-config.json new file mode 100644 index 0000000..e152f6c --- /dev/null +++ b/.github/configuration/release-please-config.json @@ -0,0 +1,9 @@ +{ + "packages": { + "charts/vespa": { + "release-type": "helm", + "component" : "vespa", + "changelog-path": "CHANGELOG.md" + } + } + } \ No newline at end of file diff --git a/.github/configuration/release-please-manifest.json b/.github/configuration/release-please-manifest.json new file mode 100644 index 0000000..446b74d --- /dev/null +++ b/.github/configuration/release-please-manifest.json @@ -0,0 +1,3 @@ +{ + "charts/vespa": "0.0.1" +} \ No newline at end of file diff --git a/.github/workflows/dev-pr-merge.yaml b/.github/workflows/dev-pr-merge.yaml new file mode 100644 index 0000000..2cc63c0 --- /dev/null +++ b/.github/workflows/dev-pr-merge.yaml @@ -0,0 +1,29 @@ +name: Merge with develop branch + +on: + pull_request: + types: [closed] + branches: + - develop + +jobs: + dev-pr-merge: + permissions: + contents: write + runs-on: ubuntu-latest + + steps: + - name: Checkout our repository + uses: actions/checkout@v2 + with: + ref: develop + fetch-depth: 0 + - name: Release Please + id: release_action_plan + uses: google-github-actions/release-please-action@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + config-file: .github/configuration/release-please-config.json + manifest-file: .github/configuration/release-please-manifest.json + include-component-in-tag: true + \ No newline at end of file