Skip to content

Commit

Permalink
ci: in release mark release as draft
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking committed Sep 11, 2024
1 parent fdcedbe commit 6eec109
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,20 @@ on:
workflow_dispatch:

jobs:
convert-release-as-draft:
name: Convert release to draft
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: chmod +x .hacking/scripts/convert_release_to_draft.sh
- run: .hacking/scripts/convert_release_to_draft.sh
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
check-versions-match:
name: Check versions match
runs-on: ubuntu-latest
needs:
- convert-release-as-draft
steps:
- uses: actions/checkout@v4
- name: Install jq
Expand Down
4 changes: 4 additions & 0 deletions .hacking/scripts/convert_release_to_draft.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VERSION="v$(grep "^version" Cargo.toml | awk -F '"' '{print $2}')"
echo "VERSION: $VERSION"

gh release edit "$VERSION" --draft=true

0 comments on commit 6eec109

Please sign in to comment.