From 2c9d3ad03cc17182572c5b193ea6bb2450c5b6db Mon Sep 17 00:00:00 2001 From: Joseph Petersen Date: Wed, 19 Jan 2022 23:24:45 +0100 Subject: [PATCH 1/4] add action-build for dependabot updates --- .github/workflows/action-build.yml | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/action-build.yml diff --git a/.github/workflows/action-build.yml b/.github/workflows/action-build.yml new file mode 100644 index 000000000..0fcb012c4 --- /dev/null +++ b/.github/workflows/action-build.yml @@ -0,0 +1,37 @@ +name: Dependabot post-update +on: + pull_request_target: + types: [opened, synchronize, reopened] + branches: + - 'master' + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + post-update: + if: ${{ github.actor == 'dependabot[bot]' }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Checkout + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh pr checkout ${{ github.event.pull_request.number }} + + - uses: actions/setup-node@v2 + with: + node-version: '16' + cache: 'yarn' + + - run: yarn install --frozen-lockfile + - run: yarn build + + - name: Commit and push if needed + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Apply dist/index.js changes From 734e40e1c61d78f4b4b85cd9a49f7e0e49c727dc Mon Sep 17 00:00:00 2001 From: Joseph Petersen Date: Wed, 19 Jan 2022 23:26:52 +0100 Subject: [PATCH 2/4] formatting --- .github/workflows/action-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/action-build.yml b/.github/workflows/action-build.yml index 0fcb012c4..a80c71d05 100644 --- a/.github/workflows/action-build.yml +++ b/.github/workflows/action-build.yml @@ -17,7 +17,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Checkout + - name: Checkout out pull request env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | @@ -29,6 +29,7 @@ jobs: cache: 'yarn' - run: yarn install --frozen-lockfile + - run: yarn build - name: Commit and push if needed From a2141bf9268645e787ccf88605efad8155130932 Mon Sep 17 00:00:00 2001 From: Joseph Petersen Date: Wed, 19 Jan 2022 23:31:13 +0100 Subject: [PATCH 3/4] disable husky --- .github/workflows/action-build.yml | 3 +++ .github/workflows/release.yml | 4 ++++ .github/workflows/tests.yml | 3 +++ 3 files changed, 10 insertions(+) diff --git a/.github/workflows/action-build.yml b/.github/workflows/action-build.yml index a80c71d05..59a20735b 100644 --- a/.github/workflows/action-build.yml +++ b/.github/workflows/action-build.yml @@ -5,6 +5,9 @@ on: branches: - 'master' +env: + HUSKY: '0' + concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number }} cancel-in-progress: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0aef601ec..4da2121c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,10 @@ on: push: tags: - v*.*.* + +env: + HUSKY: '0' + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 24b8b0c57..98e1ac48e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,6 +6,9 @@ on: - master pull_request: +env: + HUSKY: '0' + jobs: build: runs-on: ubuntu-latest From d757c95391d0635be63562a43eecc8d0a828073c Mon Sep 17 00:00:00 2001 From: Joseph Petersen Date: Wed, 19 Jan 2022 23:31:19 +0100 Subject: [PATCH 4/4] remove unused rebase workflow --- .github/workflows/rebase.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/rebase.yml diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml deleted file mode 100644 index 5d840114d..000000000 --- a/.github/workflows/rebase.yml +++ /dev/null @@ -1,26 +0,0 @@ -on: - issue_comment: - types: - - created -name: Automatic Rebase -jobs: - rebase: - name: Rebase - runs-on: ubuntu-latest - steps: - - uses: khan/pull-request-comment-trigger@master - id: check - with: - trigger: '/rebase' - reaction: rocket - env: - GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' - - uses: actions/checkout@v2 - if: steps.check.outputs.triggered == 'true' - with: - fetch-depth: 0 - - name: Automatic Rebase - uses: cirrus-actions/rebase@1.5 - if: steps.check.outputs.triggered == 'true' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}