From f5cd976e4f35c7ed3919d85ca2f3e73fe665e491 Mon Sep 17 00:00:00 2001 From: Josh Stillman Date: Sun, 29 Sep 2024 14:40:20 -0400 Subject: [PATCH] add separate update versions job --- .github/workflows/update-pinned-versions.yml | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/update-pinned-versions.yml diff --git a/.github/workflows/update-pinned-versions.yml b/.github/workflows/update-pinned-versions.yml new file mode 100644 index 0000000..ce4e67f --- /dev/null +++ b/.github/workflows/update-pinned-versions.yml @@ -0,0 +1,31 @@ +name: Update Pinned Versions + +on: + workflow_run: + workflows: e2e + types: + - completed + +jobs: + update: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - uses: actions/checkout@v2 + - name: Cache Node Modules + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} + - name: Install Node Modules + run: npm ci + - name: Update Pinned Versions + id: update-script + run: npm run update-pinned-versions + - name: Create PR + if: steps.update-script.outcome == 'success' + uses: peter-evans/create-pull-request@v7 + with: + commit-message: Update pinned versions + title: Update Pinned Versions + branch: update-pinned-versions