Skip to content

Bump Pinned Versions #29

Bump Pinned Versions

Bump Pinned Versions #29

Workflow file for this run

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."