Skip to content

v1.0.3

v1.0.3 #8

Workflow file for this run

name: "🏷️ Tag on PR merge"
on:
workflow_dispatch:
pull_request:
types: [closed]
branches:
- main
jobs:
run_on_merge:
if: github.event.pull_request.merged == true
runs-on: ubuntu-24.04
steps:
- name: "📦 Checkout"
uses: actions/checkout@v4
- name: "🔍 Find the current version"
id: find_version
run: |
RELEASE_VERSION=$(sed -n '2p' Configurations/Project-Shared.xcconfig | cut -d '=' -f2 | tr -d ' ')
echo "Found version: $RELEASE_VERSION"
echo "NEW_RELEASE_VERSION=v$RELEASE_VERSION" >> $GITHUB_ENV
- name: "🚀 Create a release"
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
NEW_RELEASE_VERSION: ${{ steps.find_version.outputs.NEW_RELEASE_VERSION }}
with:
tag_name: ${{ env.NEW_RELEASE_VERSION }}
release_name: "Release: ${{ env.NEW_RELEASE_VERSION }}"
body: |
Release ${{ env.NEW_RELEASE_VERSION }}
- PR: #${{ github.event.pull_request.number }}
- URL: ${{ github.event.pull_request.url }}
- Commits: ${{ github.event.pull_request.commits_url }}
- Diff: ${{ github.event.pull_request.diff_url }}
See [CHANGELOG.md][https://${{ github.server_url }}/${{ github.repository }}/blob/${{ github.event.pull_request.merge_commit_sha }}/CHANGELOG.md] for more details.
draft: false
prerelease: false