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
53 changes: 53 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Create Release

on:
push:
branches: [main]

jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Extract version from Info.plist
id: get_version
run: |
VERSION=$(grep -A1 '<key>PluginVersion</key>' "LogsOverReflector.indigoPlugin/Contents/Info.plist" | grep '<string>' | sed 's/.*<string>\(.*\)<\/string>.*/\1/')
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Found version: $VERSION"

- name: Check if tag already exists
id: check_tag
run: |
VERSION="${{ steps.get_version.outputs.version }}"
if git tag -l | grep -q "^${VERSION}$"; then
echo "exists=true" >> $GITHUB_OUTPUT
echo "Tag ${VERSION} already exists, skipping release creation"
else
echo "exists=false" >> $GITHUB_OUTPUT
echo "Tag ${VERSION} does not exist, will create release"
fi

- name: Create plugin bundle zip
if: steps.check_tag.outputs.exists == 'false'
run: |
VERSION="${{ steps.get_version.outputs.version }}"
zip -r "LogsOverReflector.indigoPlugin.zip" "LogsOverReflector.indigoPlugin"
echo "Created LogsOverReflector.indigoPlugin.zip"

- name: Create Release
if: steps.check_tag.outputs.exists == 'false'
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.get_version.outputs.version }}
name: Release ${{ steps.get_version.outputs.version }}
generate_release_notes: true
files: LogsOverReflector.indigoPlugin.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Version Check

on:
pull_request:
branches: [master, main]

jobs:
check-version:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Extract version from Info.plist
id: get_version
run: |
VERSION=$(grep -A1 '<key>PluginVersion</key>' "LogsOverReflector.indigoPlugin/Contents/Info.plist" | grep '<string>' | sed 's/.*<string>\(.*\)<\/string>.*/\1/')
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Found version: $VERSION"

- name: Check if version tag already exists
run: |
VERSION="${{ steps.get_version.outputs.version }}"
if git tag -l | grep -q "^${VERSION}$"; then
echo "::error::Version ${VERSION} already exists as a tag. Please update the version in Info.plist."
exit 1
fi
echo "Version ${VERSION} is unique - check passed"
4 changes: 2 additions & 2 deletions LogsOverReflector.indigoPlugin/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<plist version="1.0">
<dict>
<key>PluginVersion</key>
<string>2026.0.1</string>
<string>2026.0.2</string>
<key>ServerApiVersion</key>
<string>3.6</string>
<key>CFBundleDisplayName</key>
<string>LogsOverReflector</string>
<key>CFBundleIdentifier</key>
<string>com.simons-plugins.logs-over-reflector</string>
<key>CFBundleVersion</key>
<string>2026.0.1</string>
<string>2026.0.2</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand Down