Skip to content

Commit aeeb094

Browse files
committed
workflows: test-tar: migrate from 3rd party action
1 parent 423bc2e commit aeeb094

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/test-tar.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 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
33

44

55
name: Package prism
@@ -11,14 +11,16 @@ env:
1111

1212
on:
1313
push:
14-
tags:
14+
tags:
1515
- '*'
1616

1717

1818

1919
jobs:
2020
vendor-tarball:
2121
runs-on: ubuntu-latest
22+
permissions:
23+
contents: write
2224
steps:
2325
- uses: actions/checkout@v4
2426
with:
@@ -33,7 +35,7 @@ jobs:
3335
run: npm install $(grep -m1 prism-cli scripts/mock | awk '{print $3}' | sed s/--package=//)
3436
working-directory: ${{ env.CHECKOUT_DIR }}
3537

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
3739
- name: fetch cloudflare api spec
3840
run: wget $(yq -e '.openapi_spec_url' .stats.yml) -O cloudflare-spec.yml
3941
working-directory: ${{ env.CHECKOUT_DIR }}
@@ -42,9 +44,11 @@ jobs:
4244
run: tar ${{ env.TAR_REPRO_OPTS }} -caf ${{ env.TAR_NAME }} ${{ env.TAR_FILES }}
4345
working-directory: ${{ env.CHECKOUT_DIR }}
4446
- 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 }}

0 commit comments

Comments
 (0)