File tree 6 files changed +29
-13
lines changed
6 files changed +29
-13
lines changed Original file line number Diff line number Diff line change 16
16
build :
17
17
name : " Archive Issues and Pull Requests"
18
18
runs-on : ubuntu-latest
19
+ permissions :
20
+ contents : write
19
21
steps :
20
22
- name : " Checkout"
21
- uses : actions/checkout@v2
23
+ uses : actions/checkout@v4
22
24
23
25
# Note: No caching for this build!
24
26
37
39
token : ${{ github.token }}
38
40
39
41
- name : " Save Archive"
40
- uses : actions/upload-artifact@v3
42
+ uses : actions/upload-artifact@v4
41
43
with :
42
44
path : archive.json
Original file line number Diff line number Diff line change @@ -18,16 +18,18 @@ jobs:
18
18
build :
19
19
name : " Update Editor's Copy"
20
20
runs-on : ubuntu-latest
21
+ permissions :
22
+ contents : write
21
23
steps :
22
24
- name : " Checkout"
23
- uses : actions/checkout@v3
25
+ uses : actions/checkout@v4
24
26
25
27
- name : " Setup"
26
28
id : setup
27
29
run : date -u "+date=%FT%T" >>"$GITHUB_OUTPUT"
28
30
29
31
- name : " Caching"
30
- uses : actions/cache@v3
32
+ uses : actions/cache@v4
31
33
with :
32
34
path : |
33
35
.refcache
51
53
token : ${{ github.token }}
52
54
53
55
- name : " Archive Built Drafts"
54
- uses : actions/upload-artifact@v3
56
+ uses : actions/upload-artifact@v4
55
57
with :
56
58
path : |
57
59
draft-*.html
Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- " draft-*"
7
+ workflow_dispatch :
8
+ inputs :
9
+ email :
10
+ description : " Submitter email"
11
+ default : " "
12
+ type : string
7
13
8
14
jobs :
9
15
build :
10
16
name : " Publish New Draft Version"
11
17
runs-on : ubuntu-latest
12
18
steps :
13
19
- name : " Checkout"
14
- uses : actions/checkout@v3
20
+ uses : actions/checkout@v4
15
21
16
22
# See https://github.com/actions/checkout/issues/290
17
23
- name : " Get Tag Annotations"
22
28
run : date -u "+date=%FT%T" >>"$GITHUB_OUTPUT"
23
29
24
30
- name : " Caching"
25
- uses : actions/cache@v3
31
+ uses : actions/cache@v4
26
32
with :
27
33
path : |
28
34
.refcache
42
48
uses : martinthomson/i-d-template@v1
43
49
with :
44
50
make : upload
51
+ env :
52
+ UPLOAD_EMAIL : ${{ inputs.email }}
45
53
46
54
- name : " Archive Submitted Drafts"
47
- uses : actions/upload-artifact@v3
55
+ uses : actions/upload-artifact@v4
48
56
with :
49
57
path : " versioned/draft-*-[0-9][0-9].*"
Original file line number Diff line number Diff line change 24
24
runs-on : ubuntu-latest
25
25
steps :
26
26
- name : " Checkout"
27
- uses : actions/checkout@v2
27
+ uses : actions/checkout@v4
28
28
29
29
- name : " Update Generated Files"
30
30
uses : martinthomson/i-d-template@v1
Original file line number Diff line number Diff line change 7
7
* ~
8
8
.tags
9
9
/* - [0-9 ][0-9 ].xml
10
+ /. * .mk
10
11
/.gems /
11
12
/.refcache
12
- /.targets.mk
13
13
/.venv /
14
14
/.vscode /
15
15
/lib
Original file line number Diff line number Diff line change @@ -4,8 +4,12 @@ include $(LIBDIR)/main.mk
4
4
$(LIBDIR ) /main.mk :
5
5
ifneq (,$(shell grep "path * = * $(LIBDIR ) " .gitmodules 2>/dev/null) )
6
6
git submodule sync
7
- git submodule update $(CLONE_ARGS) --init
7
+ git submodule update --init
8
8
else
9
- git clone -q --depth 10 $(CLONE_ARGS) \
10
- -b main https://github.com/martinthomson/i-d-template $(LIBDIR)
9
+ ifneq (,$(wildcard $(ID_TEMPLATE_HOME ) ) )
10
+ ln -s "$(ID_TEMPLATE_HOME)" $(LIBDIR)
11
+ else
12
+ git clone -q --depth 10 -b main \
13
+ https://github.com/martinthomson/i-d-template $(LIBDIR)
14
+ endif
11
15
endif
You can’t perform that action at this time.
0 commit comments