* Add zizmor checks on CI. * Fix zizmor credentials warnings * Add persist-credentials: false to action-cached-lfs-checkout too. * Add empty permissions by default. * Ignore pull_request_target failure and add a warning.
31 lines
800 B
YAML
31 lines
800 B
YAML
name: Post-release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'release/**'
|
|
|
|
permissions: {}
|
|
|
|
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@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
with:
|
|
github-token: ${{ secrets.ENTERPRISE_ACTIONS_TOKEN }}
|
|
script: |
|
|
const tag = context.ref.replace('refs/tags/', '');
|
|
const inputs = { git_tag: tag };
|
|
await github.rest.actions.createWorkflowDispatch({
|
|
owner: 'element-hq',
|
|
repo: 'element-enterprise',
|
|
workflow_id: 'pipeline-ios.yml',
|
|
ref: 'main',
|
|
inputs: inputs
|
|
});
|