Skip to content

add separate update versions job #3

add separate update versions job

add separate update versions job #3

Workflow file for this run

name: weeklyUpdate
on:
push:
branches: js/update-action
schedule:
- cron: '0 9 * * 1'
workflow_dispatch:
jobs:
# e2e:
# runs-on: ubuntu-latest
# steps:
# - name: Check out code
# uses: actions/checkout@v2
# - name: Build docker image
# run: docker build -f "e2e.Dockerfile" -t lintier-e2e:latest "."
# - name: Run e2e tests
# run: docker run --rm -i lintier-e2e:latest
update:
runs-on: ubuntu-latest
# needs: e2e
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
# create-pr:
# runs-on: ubuntu-latest
# needs: [update]
# steps:
- 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