mirror of https://github.com/buster-so/buster.git
always release
This commit is contained in:
parent
6460e1d8e2
commit
001b87c0c8
|
@ -179,22 +179,8 @@ jobs:
|
||||||
npm version $VERSION --no-git-tag-version || true
|
npm version $VERSION --no-git-tag-version || true
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
- name: Check if release exists
|
- name: Create or Update Release
|
||||||
id: check_release
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
if gh release view "v${{ steps.get_version.outputs.version }}" &>/dev/null; then
|
|
||||||
echo "exists=true" >> $GITHUB_OUTPUT
|
|
||||||
echo "Release v${{ steps.get_version.outputs.version }} already exists"
|
|
||||||
else
|
|
||||||
echo "exists=false" >> $GITHUB_OUTPUT
|
|
||||||
echo "Release v${{ steps.get_version.outputs.version }} does not exist"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Create Release
|
|
||||||
id: create_the_release
|
id: create_the_release
|
||||||
if: steps.check_release.outputs.exists != 'true'
|
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ steps.get_version.outputs.version }}
|
tag_name: v${{ steps.get_version.outputs.version }}
|
||||||
|
@ -239,11 +225,7 @@ jobs:
|
||||||
id: output_release_info
|
id: output_release_info
|
||||||
run: |
|
run: |
|
||||||
echo "tag_name=v${{ steps.get_version.outputs.version }}" >> $GITHUB_OUTPUT
|
echo "tag_name=v${{ steps.get_version.outputs.version }}" >> $GITHUB_OUTPUT
|
||||||
if [[ "${{ steps.check_release.outputs.exists }}" == "true" ]]; then
|
echo "✅ Release created/updated: v${{ steps.get_version.outputs.version }}"
|
||||||
echo "ℹ️ Using existing release: v${{ steps.get_version.outputs.version }}"
|
|
||||||
else
|
|
||||||
echo "✅ Release created: v${{ steps.get_version.outputs.version }}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
update_homebrew_tap:
|
update_homebrew_tap:
|
||||||
name: Update Homebrew Tap
|
name: Update Homebrew Tap
|
||||||
|
|
Loading…
Reference in New Issue