diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml new file mode 100644 index 0000000..42e7bb0 --- /dev/null +++ b/.github/workflows/promote.yaml @@ -0,0 +1,15 @@ +name: promote + +on: + push: + branches: [prod-staging] + workflow_dispatch: + +permissions: + contents: read + +jobs: + promote: + uses: unikraft-cloud/x/.github/workflows/promote.yaml@prod-staging + secrets: + gh_pat: ${{ secrets.GH_PAT }} diff --git a/.github/workflows/release-stable.yaml b/.github/workflows/release-stable.yaml deleted file mode 100644 index 393a105..0000000 --- a/.github/workflows/release-stable.yaml +++ /dev/null @@ -1,32 +0,0 @@ -name: release-stable - -on: - push: - branches: - - prod-staging - -permissions: - deployments: write - contents: read - -jobs: - release: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - with: - ref: prod-stable - - - name: Reset promotion branch - run: | - git fetch origin prod-staging:prod-staging - git reset --hard prod-staging - - - name: Create pull request - uses: peter-evans/create-pull-request@v6 - with: - token: ${{ secrets.GH_PAT }} - base: prod-stable - title: "release: Merge latest prod-staging changes to prod-stable" - branch: prod-staging