Skip to content

Commit 5b38fa8

Browse files
authored
chore: Improve workflows (#729)
1 parent 48b157d commit 5b38fa8

File tree

5 files changed

+18
-43
lines changed

5 files changed

+18
-43
lines changed

.github/actions/setup-node/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ runs:
99
using: 'composite'
1010
steps:
1111
- name: Setup pnpm
12-
uses: pnpm/action-setup@v4
12+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
1313

1414
- name: Use Node.js ${{ inputs.node-version }}
15-
uses: actions/setup-node@v6.0.0
15+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
1616
with:
1717
registry-url: 'https://registry.npmjs.org'
1818
node-version: ${{ inputs.node-version }}

.github/dependabot.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,8 @@ updates:
1313
- package-ecosystem: 'github-actions'
1414
# Workflow files stored in the
1515
# default location of `.github/workflows`
16-
directory: '/'
17-
schedule:
18-
interval: 'daily'
19-
20-
- package-ecosystem: 'github-actions'
21-
# Workflow files stored in the
22-
# default location of `.github/workflows`
23-
directory: '/.github/actions/setup-node'
16+
directories:
17+
- '/'
18+
- '.github/actions/*'
2419
schedule:
2520
interval: 'daily'

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- release-please
3535
steps:
3636
- name: Checkout code
37-
uses: actions/checkout@v5
37+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3838
with:
3939
ref: ${{ needs.release-please.outputs.tag_name }}
4040

.github/workflows/test.yml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,18 @@ jobs:
1515
strategy:
1616
matrix:
1717
node-version:
18-
- 20.x
1918
- 22.x
2019
- 24.x
2120

2221
os:
2322
- ubuntu-latest
2423

25-
steps:
26-
- uses: actions/checkout@v5
27-
28-
- name: Setup Node
29-
uses: ./.github/actions/setup-node
30-
with:
31-
node-version: ${{ matrix.node-version }}
32-
33-
- run: |
34-
pnpm install
35-
pnpm build
36-
- run: pnpm test
37-
38-
# Test supported Operating Systems
39-
test-os:
40-
runs-on: ${{ matrix.os }}
41-
strategy:
42-
matrix:
43-
node-version:
44-
- 22.x
45-
46-
os:
47-
- windows-latest
24+
include:
25+
- os: windows-latest
26+
node-version: 24.x
4827

4928
steps:
50-
- uses: actions/checkout@v5
29+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5130

5231
- name: Setup Node
5332
uses: ./.github/actions/setup-node
@@ -57,5 +36,4 @@ jobs:
5736
- run: |
5837
pnpm install
5938
pnpm build
60-
6139
- run: pnpm test

.github/workflows/update-dependencies.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@ jobs:
4646
run: |
4747
pnpm build:readme
4848
49-
- name: Gen Body
50-
run: |
51-
echo 'git_body<<DIFF' >> $GITHUB_ENV
52-
git --no-pager diff --compact-summary >> $GITHUB_ENV
53-
echo 'DIFF' >> $GITHUB_ENV
49+
- name: PR Body
50+
id: body
51+
uses: streetsidesoftware/actions/public/pr-body@v1
52+
with:
53+
title: Update ALL Dependencies
54+
path: >-
55+
package.json
5456
5557
- name: PR
5658
uses: streetsidesoftware/actions/.github/actions/pr@v1
@@ -59,6 +61,6 @@ jobs:
5961
branch: ${{ env.NEW_BRANCH }}
6062
base: ${{ env.REF_BRANCH }}
6163
title: '${{ env.PR_TYPE }}: Workflow Bot -- Update ALL Dependencies (${{ env.REF_BRANCH }})'
62-
body: ${{ env.git_body }}
64+
body: ${{ steps.body.outputs.body }}
6365
app_id: ${{ secrets.AUTOMATION_APP_ID }}
6466
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}

0 commit comments

Comments
 (0)