Bump Pinned Versions #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump Pinned Versions | |
on: | |
workflow_run: | |
workflows: [e2e] | |
types: | |
- completed | |
workflow_dispatch: | |
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 | |
continue-on-error: true | |
- 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 | |
- name: Exit if no new versions | |
if: steps.update-script.outcome == 'failure' | |
run: | | |
echo "No new dependencies, exiting." | |