From 9e00f83ee640550a19f58d6b1fb878babef94af9 Mon Sep 17 00:00:00 2001 From: Oliver Tale-Yazdi Date: Fri, 14 Jun 2024 11:01:14 +0200 Subject: [PATCH] ... Signed-off-by: Oliver Tale-Yazdi --- .github/workflows/release-backport-yml | 47 -------------------------- .github/workflows/release-backport.yml | 37 ++++++++++++++++++++ 2 files changed, 37 insertions(+), 47 deletions(-) delete mode 100644 .github/workflows/release-backport-yml create mode 100644 .github/workflows/release-backport.yml diff --git a/.github/workflows/release-backport-yml b/.github/workflows/release-backport-yml deleted file mode 100644 index ee1e48aaa821..000000000000 --- a/.github/workflows/release-backport-yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Release - Backport - -on: - pull_request: - merge_group: - workflow_dispatch: - -permissions: - packages: read - -jobs: - check-licenses: - runs-on: ubuntu-latest - timeout-minutes: 10 - env: - LICENSES: "'Apache-2.0' 'GPL-3.0-only' 'GPL-3.0-or-later WITH Classpath-exception-2.0'" - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - name: Checkout sources - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - uses: actions/setup-node@v4.0.1 - with: - node-version: "18.x" - registry-url: "https://npm.pkg.github.com" - scope: "@paritytech" - - - name: Check the licenses in Polkadot - run: | - shopt -s globstar - npx @paritytech/license-scanner scan \ - --ensure-licenses ${{ env.LICENSES }} \ - -- ./polkadot/**/*.rs - - - name: Check the licenses in Cumulus - run: | - shopt -s globstar - npx @paritytech/license-scanner scan \ - --ensure-licenses ${{ env.LICENSES }} \ - --exclude ./cumulus/parachain-template \ - -- ./cumulus/**/*.rs - - - name: Check the licenses in Substrate - run: | - shopt -s globstar - npx @paritytech/license-scanner scan \ - --ensure-licenses ${{ env.LICENSES }} \ - -- ./substrate/**/*.rs diff --git a/.github/workflows/release-backport.yml b/.github/workflows/release-backport.yml new file mode 100644 index 000000000000..cea3baf30478 --- /dev/null +++ b/.github/workflows/release-backport.yml @@ -0,0 +1,37 @@ +name: Backport + +on: + issue_comment: + types: [created] + workflow_dispatch: + +jobs: + bench: + if: | + github.event.issue.pull_request != null && + contains(github.event.comment.body, '/backport') + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: ACK Comment + run: | + gh api -X POST /repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions --input - <> $GITHUB_ENV