Skip to content

Commit

Permalink
add separate update versions job
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-stillman committed Sep 29, 2024
1 parent 0d42e6c commit f5cd976
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/update-pinned-versions.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f5cd976

Please sign in to comment.