Add a post-release workflow. (#3986)

This commit is contained in:
Doug
2025-04-07 14:48:20 +01:00
committed by GitHub
parent baaf5ea2a4
commit 86e8fb8194
2 changed files with 30 additions and 1 deletions

29
.github/workflows/post-release.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Post-release
on:
push:
tags:
- 'release/**'
jobs:
post-release:
runs-on: ubuntu-latest
# Skip in forks
if: github.repository == 'element-hq/element-x-ios'
steps:
- name: Trigger pipeline
uses: actions/github-script@v6
with:
script: |
const tag = context.ref.replace('refs/tags/', '');
const inputs = { git_tag: tag };
await github.actions.createWorkflowDispatch({
owner: 'element-hq',
repo: 'element-enterprise',
workflow_id: 'ios-pipeline.yml',
ref: 'main',
inputs: inputs
});
env:
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}