From 8d779d60c5752d22ac55cc4e0e34f8926a3a0e8f Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Wed, 13 Apr 2022 12:13:22 -0400 Subject: [PATCH] chore: remove `backport-docs` (#14978) - this is in support of removal of `stable-website` --- .github/workflows/backport-docs.yml | 46 ----------------------------- 1 file changed, 46 deletions(-) delete mode 100644 .github/workflows/backport-docs.yml diff --git a/.github/workflows/backport-docs.yml b/.github/workflows/backport-docs.yml deleted file mode 100644 index d4b14645b..000000000 --- a/.github/workflows/backport-docs.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -name: Backport Assistant Runner For Docs (OSS only) - -on: - pull_request_target: - types: - - closed - - labeled - -jobs: - backport-for-docs: - if: github.event.pull_request.merged - runs-on: ubuntu-latest - container: hashicorpdev/backport-assistant:0.2.3 - steps: - - name: Backport changes to stable-website - run: | - backport-assistant backport -automerge -merge-method=squash - env: - BACKPORT_LABEL_REGEXP: "backport/(?Pwebsite)" - BACKPORT_TARGET_TEMPLATE: "stable-{{.target}}" - GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }} - - name: Backport changes labeled website to latest release branch - if: always() - run: | - resp=$(curl -f -s "https://api.github.com/repos/$GITHUB_REPOSITORY/releases?per_page=100") - ret="$?" - if [[ "$ret" -ne 0 ]]; then - echo "The GitHub API returned $ret" - exit $ret - fi - - # find the latest non-rc release - latest_version=$(echo "$resp" | tr '\r\n' ' ' | jq -r '.[] | select(.name|test("^v\\d+\\.\\d+\\.\\d+$")) | .name' | sort -rV | head -n1) - echo "Latest non-rc version: $latest_version" - - # strip leading "v" & - target="${latest_version#v}" - # replace patch version with "x" - target="${target%.*}.x" - - export BACKPORT_TARGET_TEMPLATE="release/$target" - backport-assistant backport - env: - BACKPORT_LABEL_REGEXP: "backport/(?Pwebsite)" - GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}