From 526c9eff2532d9d33d7176b91ad875234bd2558d Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Sat, 15 Aug 2020 01:11:42 -0400 Subject: [PATCH 1/2] feat: Add auto-pr cron job --- .github/workflows/auto-pr.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/auto-pr.yml diff --git a/.github/workflows/auto-pr.yml b/.github/workflows/auto-pr.yml new file mode 100644 index 0000000000..532dc51573 --- /dev/null +++ b/.github/workflows/auto-pr.yml @@ -0,0 +1,26 @@ +name: Auto PR for new versions + +on: + schedule: + - cron: 0 0 * * * + +jobs: + update: + strategy: + matrix: + version: + - 10 + - 12 + - 14 + runs-on: ubuntu-latest + steps: + - name: Update Docker images + uses: technote-space/create-pr-action@v2 + with: + EXECUTE_COMMANDS: | + ./update.sh ${{ matrix.version }} + COMMIT_MESSAGE: 'chore: update ${{ matrix.version }}' + COMMIT_NAME: 'Node.js GitHub Bot' + COMMIT_EMAIL: 'github-bot@iojs.org' + PR_BRANCH_NAME: 'chore-update-${{ matrix.version }}' + PR_TITLE: 'chore: update ${{ matrix.version }}' From d0de4770dd08e95f11fb411c5cbac5f8aadcdf07 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Sat, 15 Aug 2020 12:36:36 -0400 Subject: [PATCH 2/2] fix: Add GITHUB_TOKEN passing Co-authored-by: mary marchini --- .github/workflows/auto-pr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/auto-pr.yml b/.github/workflows/auto-pr.yml index 532dc51573..d20020fde6 100644 --- a/.github/workflows/auto-pr.yml +++ b/.github/workflows/auto-pr.yml @@ -24,3 +24,4 @@ jobs: COMMIT_EMAIL: 'github-bot@iojs.org' PR_BRANCH_NAME: 'chore-update-${{ matrix.version }}' PR_TITLE: 'chore: update ${{ matrix.version }}' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}