-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
42 lines (42 loc) · 1.22 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "P6 GHA: Upgrade Dependencies for a CDK App"
description: "P6 GHA: Upgrade Dependencies for a CDK App"
author: "Philip M. Gollucci"
inputs:
gh_token:
description: "GitHub Token"
required: true
runs:
using: "composite"
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
ref: main
- name: Node
uses: p6m7g8-actions/node-setup@main
- name: Update Dependencies
shell: bash
run: |
pnpm up --latest
echo "diff<<EOF" >> $GITHUB_ENV
git diff >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Create Pull Request
id: create_pr
uses: peter-evans/create-pull-request@v7.0.5
with:
token: ${{ inputs.gh_token }}
commit-message: |
chore(deps): upgrade dependencies
branch: github-actions/upgrade-main
title: "chore(deps): upgrade dependencies"
labels: auto-merge
body: |
Upgrades project dependencies. The following changes were made:
```diff
${{ env.diff }}
```
author: github-actions <github-actions@github.com>
committer: github-actions <github-actions@github.com>
signoff: true