@@ -34,21 +34,21 @@ jobs:
34
34
run-id : ${{ steps.run-id.outputs.run-id }}
35
35
36
36
steps :
37
- - name : " Find latest kit.yml run"
38
- id : runs
39
- uses : octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d # v2.4.0
40
- with :
41
- route : GET /repos/nedbat/coveragepy/actions/workflows/kit.yml/runs
42
- env :
43
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
-
45
- - name : " Record run id" # zizmor: ignore[template-injection]
46
- id : run-id
47
- run : |
48
- # There must be a shorter way to write this...
49
- [ "${{ fromJson(steps.runs.outputs.data).workflow_runs[0].status}}" = "completed" ] || exit 1
50
- [ "${{ fromJson(steps.runs.outputs.data).workflow_runs[0].conclusion}}" = "success" ] || exit 1
51
- echo "run-id=${{ fromJson(steps.runs.outputs.data).workflow_runs[0].id }}" >> "$GITHUB_OUTPUT"
37
+ - name : " Find latest kit.yml run"
38
+ id : runs
39
+ uses : octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d # v2.4.0
40
+ with :
41
+ route : GET /repos/nedbat/coveragepy/actions/workflows/kit.yml/runs
42
+ env :
43
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+
45
+ - name : " Record run id" # zizmor: ignore[template-injection]
46
+ id : run-id
47
+ run : |
48
+ # There must be a shorter way to write this...
49
+ [ "${{ fromJson(steps.runs.outputs.data).workflow_runs[0].status}}" = "completed" ] || exit 1
50
+ [ "${{ fromJson(steps.runs.outputs.data).workflow_runs[0].conclusion}}" = "success" ] || exit 1
51
+ echo "run-id=${{ fromJson(steps.runs.outputs.data).workflow_runs[0].id }}" >> "$GITHUB_OUTPUT"
52
52
53
53
publish-to-test-pypi :
54
54
name : " Publish to Test PyPI"
@@ -63,32 +63,32 @@ jobs:
63
63
- find-run
64
64
65
65
steps :
66
- - name : " Download dists"
67
- uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
68
- with :
69
- repository : " nedbat/coveragepy"
70
- run-id : ${{ needs.find-run.outputs.run-id }}
71
- github-token : ${{ secrets.GITHUB_TOKEN }}
72
- pattern : " dist-*"
73
- merge-multiple : true
74
- path : " dist/"
75
-
76
- - name : " What did we get?"
77
- run : |
78
- ls -alR
79
- echo "Number of dists, should be $EXPECTED:"
80
- ls -1 dist | wc -l
81
- files=$(ls dist 2>/dev/null | wc -l) && [ "$files" -eq $EXPECTED ] || exit 1
82
-
83
- - name : " Generate attestations"
84
- uses : actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3
85
- with :
86
- subject-path : " dist/*"
87
-
88
- - name : " Publish dists to Test PyPI"
89
- uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
90
- with :
91
- repository-url : https://test.pypi.org/legacy/
66
+ - name : " Download dists"
67
+ uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
68
+ with :
69
+ repository : " nedbat/coveragepy"
70
+ run-id : ${{ needs.find-run.outputs.run-id }}
71
+ github-token : ${{ secrets.GITHUB_TOKEN }}
72
+ pattern : " dist-*"
73
+ merge-multiple : true
74
+ path : " dist/"
75
+
76
+ - name : " What did we get?"
77
+ run : |
78
+ ls -alR
79
+ echo "Number of dists, should be $EXPECTED:"
80
+ ls -1 dist | wc -l
81
+ files=$(ls dist 2>/dev/null | wc -l) && [ "$files" -eq $EXPECTED ] || exit 1
82
+
83
+ - name : " Generate attestations"
84
+ uses : actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3
85
+ with :
86
+ subject-path : " dist/*"
87
+
88
+ - name : " Publish dists to Test PyPI"
89
+ uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
90
+ with :
91
+ repository-url : https://test.pypi.org/legacy/
92
92
93
93
publish-to-pypi :
94
94
name : " Publish to PyPI"
@@ -103,27 +103,27 @@ jobs:
103
103
- find-run
104
104
105
105
steps :
106
- - name : " Download dists"
107
- uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
108
- with :
109
- repository : " nedbat/coveragepy"
110
- run-id : ${{ needs.find-run.outputs.run-id }}
111
- github-token : ${{ secrets.GITHUB_TOKEN }}
112
- pattern : " dist-*"
113
- merge-multiple : true
114
- path : " dist/"
115
-
116
- - name : " What did we get?"
117
- run : |
118
- ls -alR
119
- echo "Number of dists, should be $EXPECTED:"
120
- ls -1 dist | wc -l
121
- files=$(ls dist 2>/dev/null | wc -l) && [ "$files" -eq $EXPECTED ] || exit 1
122
-
123
- - name : " Generate attestations"
124
- uses : actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3
125
- with :
126
- subject-path : " dist/*"
127
-
128
- - name : " Publish dists to PyPI"
129
- uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
106
+ - name : " Download dists"
107
+ uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
108
+ with :
109
+ repository : " nedbat/coveragepy"
110
+ run-id : ${{ needs.find-run.outputs.run-id }}
111
+ github-token : ${{ secrets.GITHUB_TOKEN }}
112
+ pattern : " dist-*"
113
+ merge-multiple : true
114
+ path : " dist/"
115
+
116
+ - name : " What did we get?"
117
+ run : |
118
+ ls -alR
119
+ echo "Number of dists, should be $EXPECTED:"
120
+ ls -1 dist | wc -l
121
+ files=$(ls dist 2>/dev/null | wc -l) && [ "$files" -eq $EXPECTED ] || exit 1
122
+
123
+ - name : " Generate attestations"
124
+ uses : actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3
125
+ with :
126
+ subject-path : " dist/*"
127
+
128
+ - name : " Publish dists to PyPI"
129
+ uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
0 commit comments