Skip to content

V0.1.4

V0.1.4 #8

Workflow file for this run

name: Release Gate
on:
pull_request:
types: [closed]
branches: [main]
paths: ['.releases/**']
jobs:
create-release-tag:
name: Create tag from release request
runs-on: ubuntu-latest
timeout-minutes: 5
if: github.event.pull_request.merged == true
permissions:
contents: write
steps:
- name: Fail if App credentials are not configured
run: |
if [ -z "${{ secrets.APP_ID }}" ] || [ -z "${{ secrets.APP_PRIVATE_KEY }}" ]; then
echo "❌ APP_ID and APP_PRIVATE_KEY must be configured."
echo "For fork testing, install a personal GitHub App on the fork,"
echo "create a private key, and add both as repository secrets."
exit 1
fi
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/create-github-app-token@v3
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install Python deps
run: pip install pyyaml
- name: Create tag from release request
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
REPO: ${{ github.repository }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
MERGE_SHA: ${{ github.event.pull_request.merge_commit_sha }}
run: python .github/workflows/release/release.py gate