-
Notifications
You must be signed in to change notification settings - Fork 16
[test] create the release #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -61,25 +61,54 @@ jobs: | |||||||||||||
| git config user.name "github-actions[bot]" | ||||||||||||||
| git config user.email "github-actions[bot]@users.noreply.github.com" | ||||||||||||||
|
|
||||||||||||||
| # Create version tag if version label exists | ||||||||||||||
| CREATE_VERSION_TAG=false | ||||||||||||||
| CREATE_NETWORK_TAG=false | ||||||||||||||
|
|
||||||||||||||
| # Check if version tag should be created | ||||||||||||||
| if [ -n "${{ steps.get_tags_labels.outputs.version }}" ] && [ "${{ steps.get_tags_labels.outputs.version }}" != "null" ]; then | ||||||||||||||
| if git rev-parse "${{ steps.get_tags_labels.outputs.git_tag }}" >/dev/null 2>&1; then | ||||||||||||||
| echo "⚠️ Tag ${{ steps.get_tags_labels.outputs.git_tag }} already exists, skipping" | ||||||||||||||
| echo "❌ Version tag ${{ steps.get_tags_labels.outputs.git_tag }} already exists. Please create a new tag." | ||||||||||||||
| exit 1 | ||||||||||||||
| else | ||||||||||||||
| git tag -a "${{ steps.get_tags_labels.outputs.git_tag }}" -m "Release version ${{ steps.get_tags_labels.outputs.version }}" | ||||||||||||||
| git push origin "${{ steps.get_tags_labels.outputs.git_tag }}" | ||||||||||||||
| echo "✅ Created version tag ${{ steps.get_tags_labels.outputs.git_tag }}" | ||||||||||||||
| CREATE_VERSION_TAG=true | ||||||||||||||
| fi | ||||||||||||||
| fi | ||||||||||||||
|
|
||||||||||||||
| # Create zeam network tag if network label exists | ||||||||||||||
| # Check if network tag should be created | ||||||||||||||
| if [ "${{ steps.get_tags_labels.outputs.has_network_tag }}" = "true" ]; then | ||||||||||||||
| ZEAM_GIT_TAG="${{ steps.get_tags_labels.outputs.zeam_tag }}" | ||||||||||||||
| if git rev-parse "$ZEAM_GIT_TAG" >/dev/null 2>&1; then | ||||||||||||||
| echo "⚠️ Zeam tag $ZEAM_GIT_TAG already exists, skipping" | ||||||||||||||
| echo "❌ Network tag $ZEAM_GIT_TAG already exists. Please create a new tag." | ||||||||||||||
| exit 1 | ||||||||||||||
| else | ||||||||||||||
| git tag -a "$ZEAM_GIT_TAG" -m "Zeam network tag for ${{ steps.get_tags_labels.outputs.zeam_tag }}" | ||||||||||||||
| git push origin "$ZEAM_GIT_TAG" | ||||||||||||||
| echo "✅ Created zeam tag $ZEAM_GIT_TAG" | ||||||||||||||
| CREATE_NETWORK_TAG=true | ||||||||||||||
| fi | ||||||||||||||
| fi | ||||||||||||||
|
|
||||||||||||||
| # Create version tag if needed | ||||||||||||||
| if [ "$CREATE_VERSION_TAG" = "true" ]; then | ||||||||||||||
| git tag -a "${{ steps.get_tags_labels.outputs.git_tag }}" -m "Release version ${{ steps.get_tags_labels.outputs.version }}" | ||||||||||||||
| git push origin "${{ steps.get_tags_labels.outputs.git_tag }}" | ||||||||||||||
| echo "✅ Created version tag ${{ steps.get_tags_labels.outputs.git_tag }}" | ||||||||||||||
| fi | ||||||||||||||
|
|
||||||||||||||
| # Create network tag if needed | ||||||||||||||
| if [ "$CREATE_NETWORK_TAG" = "true" ]; then | ||||||||||||||
| git tag -a "$ZEAM_GIT_TAG" -m "Zeam network tag for $ZEAM_GIT_TAG" | ||||||||||||||
| git push origin "$ZEAM_GIT_TAG" | ||||||||||||||
| echo "✅ Created zeam tag $ZEAM_GIT_TAG" | ||||||||||||||
| fi | ||||||||||||||
| echo "create_version_tag=$CREATE_VERSION_TAG" >> $GITHUB_OUTPUT | ||||||||||||||
| echo "create_network_tag=$CREATE_NETWORK_TAG" >> $GITHUB_OUTPUT | ||||||||||||||
|
|
||||||||||||||
| - name: Create GitHub Release | ||||||||||||||
| if: ${{ steps.create_tags.outputs.create_version_tag == 'true' || steps.create_tags.outputs.create_network_tag == 'true' }} | ||||||||||||||
| uses: actions/create-release@v1 | ||||||||||||||
| with: | ||||||||||||||
| tag_name: ${{ steps.get_tags_labels.outputs.git_tag != '' && steps.get_tags_labels.outputs.git_tag != 'null' && steps.get_tags_labels.outputs.git_tag || steps.get_tags_labels.outputs.zeam_tag }} | ||||||||||||||
| release_name: Release ${{ steps.get_tags_labels.outputs.git_tag != '' && steps.get_tags_labels.outputs.git_tag != 'null' && steps.get_tags_labels.outputs.git_tag || steps.get_tags_labels.outputs.zeam_tag }} | ||||||||||||||
| body: Release ${{ steps.get_tags_labels.outputs.git_tag != '' && steps.get_tags_labels.outputs.git_tag != 'null' && steps.get_tags_labels.outputs.git_tag || steps.get_tags_labels.outputs.zeam_tag }} | ||||||||||||||
|
Comment on lines
+108
to
+110
|
||||||||||||||
| tag_name: ${{ steps.get_tags_labels.outputs.git_tag != '' && steps.get_tags_labels.outputs.git_tag != 'null' && steps.get_tags_labels.outputs.git_tag || steps.get_tags_labels.outputs.zeam_tag }} | |
| release_name: Release ${{ steps.get_tags_labels.outputs.git_tag != '' && steps.get_tags_labels.outputs.git_tag != 'null' && steps.get_tags_labels.outputs.git_tag || steps.get_tags_labels.outputs.zeam_tag }} | |
| body: Release ${{ steps.get_tags_labels.outputs.git_tag != '' && steps.get_tags_labels.outputs.git_tag != 'null' && steps.get_tags_labels.outputs.git_tag || steps.get_tags_labels.outputs.zeam_tag }} | |
| tag_name: ${{ steps.create_tags.outputs.create_version_tag == 'true' && steps.get_tags_labels.outputs.git_tag || steps.get_tags_labels.outputs.zeam_tag }} | |
| release_name: Release ${{ steps.create_tags.outputs.create_version_tag == 'true' && steps.get_tags_labels.outputs.git_tag || steps.get_tags_labels.outputs.zeam_tag }} | |
| body: Release ${{ steps.create_tags.outputs.create_version_tag == 'true' && steps.get_tags_labels.outputs.git_tag || steps.get_tags_labels.outputs.zeam_tag }} |
Copilot
AI
Nov 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YAML indentation error. The GITHUB_TOKEN line should be indented with 2 spaces relative to env: to properly align as a child property. Currently it's at the same indentation level as env:.
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
actions/create-release@v1action is deprecated and no longer maintained. Consider usingsoftprops/action-gh-releaseor the GitHub CLI (gh release create) instead for creating releases.