Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,31 @@ on:

jobs:
verify_tag:
name: Verify tag 'release-*' on the head
name: Verify tag 'release-*' exists on the current commit
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v6

- name: Abort
if: github.ref != 'refs/heads/main' || !startsWith(github.ref, 'refs/tags/release-')
run: exit 1

- name: Success
if: github.ref == 'refs/heads/main' && startsWith(github.ref, 'refs/tags/release-')
run: exit 0
- name: Check for release tag on current commit
run: |
# Get current commit hash
CURRENT_COMMIT=$(git rev-parse HEAD)

# Check if any release-* tag points to current commit
RELEASE_TAG=$(git tag --points-at $CURRENT_COMMIT | grep '^release-' | head -1)

if [ -z "$RELEASE_TAG" ]; then
echo "❌ No release-* tag found on current commit $CURRENT_COMMIT"
echo "Available tags on this commit:"
git tag --points-at $CURRENT_COMMIT || echo "No tags found"
exit 1
else
echo "✅ Found release tag: $RELEASE_TAG on commit $CURRENT_COMMIT"
echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV
fi

verify_release_notes:
name: Verify RELEASE_NOTES.md has been changed before Release
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ bld/
[Bb]in/
[Oo]bj/

AutoBackend.sln.DotSettings.user
AutoBackend.sln.DotSettings.user
.idea
13 changes: 0 additions & 13 deletions .idea/.idea.AutoBackend/.idea/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .idea/.idea.AutoBackend/.idea/.name

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/.idea.AutoBackend/.idea/encodings.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/.idea.AutoBackend/.idea/indexLayout.xml

This file was deleted.

31 changes: 0 additions & 31 deletions .idea/.idea.AutoBackend/.idea/jsonSchemas.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/.idea.AutoBackend/.idea/markdown.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/.idea.AutoBackend/.idea/vcs.xml

This file was deleted.

Loading
Loading