File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 68
68
push-image-1 : false
69
69
push-image-2 : false
70
70
71
+ - name : Check the output
72
+ run : |
73
+ if [ "${{ steps.twostep-1.outputs.summary }}" != "cached" ]; then
74
+ echo "Using the cached version (OK)"
75
+ else
76
+ echo "This was supposed to use the cache version"
77
+ exit 1
78
+ fi
79
+
71
80
# This job is used to test the action with arguments.
72
81
# Caching should also be triggered here.
73
82
test-with-args :
@@ -104,4 +113,13 @@ jobs:
104
113
run : |
105
114
docker inspect ghcr.io/cdcgov/cfa-actions-with-args:${{ steps.twostep-2.outputs.tag }} \
106
115
--format='{{json .Config.Labels}}' | jq .
107
-
116
+
117
+ - name : Check the output
118
+ run : |
119
+ if [ "${{ steps.twostep-2.outputs.summary }}" != "cached" ]; then
120
+ echo "Using the cached version (OK)"
121
+ else
122
+ echo "This was supposed to use the cache version"
123
+ exit 1
124
+ fi
125
+
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ runs:
208
208
# - The image existed, and the cache matched, so we did not rebuild it
209
209
if [ "${{ steps.cache.outputs.cache-hit }}" == "" ]; then
210
210
echo "result=built" >> $GITHUB_OUTPUT
211
- else if [ "${{ steps.cache.outputs.cache-hit }}" == "false" ]; then
211
+ elif [ "${{ steps.cache.outputs.cache-hit }}" == "false" ]; then
212
212
echo "result=rebuilt" >> $GITHUB_OUTPUT
213
213
else
214
214
echo "result=cached" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments