12
12
env :
13
13
REPO : " processing/processing4"
14
14
15
+ outputs :
16
+ commit_sha : ${{ steps.get-commit-sha.outputs.commit_sha }}
17
+
15
18
steps :
16
19
- name : Get the latest release tag and commit SHA
17
20
id : get-commit-sha
@@ -39,13 +42,15 @@ jobs:
39
42
40
43
echo "Commit SHA: $commit_sha"
41
44
echo "commit_sha=$commit_sha" >> $GITHUB_ENV
45
+ echo "commit_sha=$commit_sha" >> $GITHUB_OUTPUT
42
46
43
47
build-javadoc :
44
48
runs-on : ubuntu-latest
45
49
needs : fetch-latest-release
46
50
47
51
env :
48
52
REMOTE_URL : " https://github.com/processing/processing4.git"
53
+ COMMIT_SHA : ${{ needs.fetch-latest-release.outputs.commit_sha }}
49
54
50
55
steps :
51
56
- name : Checkout repository
72
77
run : |
73
78
git clone ${{ env.REMOTE_URL }} processing4
74
79
cd processing4
75
- git checkout ${{ env.commit_sha }}
80
+ git checkout ${{ env.COMMIT_SHA }}
76
81
77
82
- name : Generate Javadocs
78
83
working-directory : processing4/build
86
91
uses : actions/cache@v4
87
92
with :
88
93
path : processing4/build/javadoc
89
- key : javadocs-${{ env.commit_sha }}
94
+ key : javadocs-${{ env.COMMIT_SHA }}
90
95
restore-keys : |
91
96
javadocs-
92
97
@@ -116,6 +121,8 @@ jobs:
116
121
commit-javadoc :
117
122
needs : build-javadoc
118
123
runs-on : ubuntu-latest
124
+ env :
125
+ COMMIT_SHA : ${{ needs.fetch-latest-release.outputs.commit_sha }}
119
126
steps :
120
127
- name : Checkout repository
121
128
uses : actions/checkout@v3
@@ -125,8 +132,8 @@ jobs:
125
132
- name : Restore Javadocs from cache
126
133
uses : actions/cache@v4
127
134
with :
128
- path : doc
129
- key : javadocs-${{ env.commit_sha }}
135
+ path : processing4/build/javadoc
136
+ key : javadocs-${{ env.COMMIT_SHA }}
130
137
restore-keys : |
131
138
javadocs-
132
139
0 commit comments