Skip to content

Commit e525566

Browse files
committed
Update github workflows
1 parent a4c2959 commit e525566

4 files changed

Lines changed: 33 additions & 4 deletions

File tree

.github/workflows/archive.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
contents: write
2121
steps:
2222
- name: "Checkout"
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2424

2525
# Note: No caching for this build!
2626

.github/workflows/ghpages.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ jobs:
2020
runs-on: ubuntu-latest
2121
permissions:
2222
contents: write
23+
pull-requests: write
2324
steps:
2425
- name: "Checkout"
25-
uses: actions/checkout@v4
26+
uses: actions/checkout@v5
2627

2728
- name: "Setup"
2829
id: setup
@@ -41,10 +42,28 @@ jobs:
4142
restore-keys: i-d-
4243

4344
- name: "Build Drafts"
45+
id: build
4446
uses: martinthomson/i-d-template@v1
4547
with:
4648
token: ${{ github.token }}
4749

50+
- name: "Fix Lints"
51+
id: fix-lint
52+
if: always() && steps.build.outcome == 'failure'
53+
uses: martinthomson/i-d-template@v1
54+
with:
55+
make: fix-lint
56+
57+
- name: "Propose Linting Fixes"
58+
if: >
59+
always() &&
60+
steps.fix-lint.outcome != 'skipped' &&
61+
github.event.pull_request &&
62+
github.event.pull_request.head.repo.full_name == github.repository
63+
uses: parkerbxyz/suggest-changes@v3
64+
with:
65+
token: ${{ github.token }}
66+
4867
- name: "Update GitHub Pages"
4968
uses: martinthomson/i-d-template@v1
5069
if: ${{ github.event_name == 'push' }}

.github/workflows/publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: "Checkout"
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
21+
with:
22+
# Needed for tracing file history for replacement status
23+
fetch-depth: 0
24+
fetch-tags: true
2125

2226
# See https://github.com/actions/checkout/issues/290
2327
- name: "Get Tag Annotations"
@@ -40,8 +44,10 @@ jobs:
4044
restore-keys: i-d-
4145

4246
- name: "Build Drafts"
47+
id: build
4348
uses: martinthomson/i-d-template@v1
4449
with:
50+
make: releases
4551
token: ${{ github.token }}
4652

4753
- name: "Upload to Datatracker"
@@ -50,9 +56,11 @@ jobs:
5056
make: upload
5157
env:
5258
UPLOAD_EMAIL: ${{ inputs.email }}
59+
GITHUB_STEP: upload
5360

5461
- name: "Archive Submitted Drafts"
5562
uses: actions/upload-artifact@v4
63+
if: always() && steps.build.outcome == 'success'
5664
with:
5765
name: published
5866
path: "versioned/draft-*-[0-9][0-9].*"

.github/workflows/update.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ jobs:
2222
build:
2323
name: "Update Files"
2424
runs-on: ubuntu-latest
25+
permissions:
26+
contents: write
2527
steps:
2628
- name: "Checkout"
27-
uses: actions/checkout@v4
29+
uses: actions/checkout@v5
2830

2931
- name: "Update Generated Files"
3032
uses: martinthomson/i-d-template@v1

0 commit comments

Comments
 (0)