Bump Dependencies #1531
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 Dependencies | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
bump: | |
if: github.repository == 'FredrikNoren/ungit' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- run: npm ci | |
- run: | | |
body="$(npm run bumpdependencies)" | |
echo "$body" | |
echo "body<<EOF" >> $GITHUB_OUTPUT | |
echo "$body" >> $GITHUB_OUTPUT | |
echo "EOF" >> $GITHUB_OUTPUT | |
id: bumpdependencies | |
- run: npm install | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
commit-message: Bump Dependencies | |
title: Bump Dependencies | |
body: | | |
``` | |
${{ steps.bumpdependencies.outputs.body }} | |
``` | |
labels: dependencies | |
branch: bumpdependencies |