File tree 1 file changed +13
-9
lines changed
1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 1
1
# This workflow will download the nodejs based prism-cli
2
- # which this progeam uses for its testa
2
+ # which this program uses for its tests
3
3
4
4
5
5
name : Package prism
11
11
12
12
on :
13
13
push :
14
- tags :
14
+ tags :
15
15
- ' *'
16
16
17
17
18
18
19
19
jobs :
20
20
vendor-tarball :
21
21
runs-on : ubuntu-latest
22
+ permissions :
23
+ contents : write
22
24
steps :
23
25
- uses : actions/checkout@v4
24
26
with :
33
35
run : npm install $(grep -m1 prism-cli scripts/mock | awk '{print $3}' | sed s/--package=//)
34
36
working-directory : ${{ env.CHECKOUT_DIR }}
35
37
36
- # The spec is under a BSD licensw, its all good. see https://github.com/cloudflare/api-schemas
38
+ # The spec is under a BSD license see https://github.com/cloudflare/api-schemas
37
39
- name : fetch cloudflare api spec
38
40
run : wget $(yq -e '.openapi_spec_url' .stats.yml) -O cloudflare-spec.yml
39
41
working-directory : ${{ env.CHECKOUT_DIR }}
42
44
run : tar ${{ env.TAR_REPRO_OPTS }} -caf ${{ env.TAR_NAME }} ${{ env.TAR_FILES }}
43
45
working-directory : ${{ env.CHECKOUT_DIR }}
44
46
- name : release
45
- uses : softprops/action-gh-release@v2
46
- with :
47
- files : ${{ env.CHECKOUT_DIR }}/${{ env.TAR_NAME }}
48
- body : Prism tarball for tests for Gentoo Linux overlay package
49
- generate_release_notes : false
50
- fail_on_unmatched_files : true
47
+ run : |
48
+ gh release create ${{ github.ref_name }} \
49
+ --title "${{ github.ref_name }}" \
50
+ --notes "Prism tarball for tests for Gentoo Linux overlay package" \
51
+ ${{ env.TAR_NAME }}
52
+ working-directory : ${{ env.CHECKOUT_DIR }}
53
+ env :
54
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments