Skip to content

Commit c57837f

Browse files
authored
update
1 parent a1f4c3b commit c57837f

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

.github/workflows/auto_downporting.yaml

+25-7
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,35 @@ on:
44
push:
55
branches: [main]
66

7-
permissions:
8-
contents: read
9-
107
jobs:
118
auto_downporting:
129
runs-on: ubuntu-latest
1310
timeout-minutes: 10
1411
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-node@v3
12+
- name: Checkout Repository
13+
uses: actions/checkout@v3
14+
with:
15+
ref: 702
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v3
1719
with:
18-
node-version: 20
20+
node-version: '16'
21+
1922
- run: npm ci
20-
- run: npm run rename
23+
- run: npm run downport
24+
- name: Create Pull Request
25+
id: cpr
26+
uses: peter-evans/create-pull-request@v5
27+
with:
28+
branch: auto-update-downport
29+
title: "Auto Update Downport"
30+
commit-message: "Auto Update Downport"
31+
body: "This PR contains automated changes."
32+
labels: "auto-merge"
33+
- name: Enable Pull Request Automerge
34+
if: steps.changes.outputs.changes == 'true'
35+
uses: peter-evans/enable-pull-request-automerge@v3
36+
with:
37+
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
38+
merge-method: squash

0 commit comments

Comments
 (0)