Skip to content

Commit

Permalink
update pre-release action
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-ebp committed Mar 20, 2024
1 parent 2fce1cf commit 0e0922d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,15 @@ jobs:
cache-from: type=registry,ref=${{ env.BASE_IMAGE_NAME }}-api:edge
cache-to: type=inline

- name: Create GitHub pre-release
run: |
gh api \
--method POST \
--header "Accept: application/vnd.github+json" \
/repos/${GITHUB_REPOSITORY}/releases \
-f tag_name='${{ env.VERSION }}' \
-f target_commitish='develop' \
-f name='${{ env.VERSION }}' \
-F prerelease=true \
- name: Create pre-elease
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ env.VERSION }}
release_name: ${{ env.VERSION }}
body_path: CHANGELOG.md
commitish: develop
prerelease: true
draft: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0e0922d

Please sign in to comment.