Skip to content

Commit

Permalink
ci: Add workflow to automate releases
Browse files Browse the repository at this point in the history
  • Loading branch information
bbhtt committed Oct 18, 2024
1 parent a9cbe7f commit 08e2efb
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Trigger release

on:
workflow_run:
workflows: [Docker]
types: [completed]
branches: [master]
workflow_dispatch:


jobs:
release:
runs-on: ubuntu-latest
if: github.repository == 'flathub-infra/flatpak-builder-lint' && github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[release]')
steps:
- name: Trigger workflow in org.flatpak.Builder repository
uses: peter-evans/repository-dispatch@v3
with:
repository: flathub/org.flatpak.Builder
event-type: trigger-workflow
client-payload: '{"sha": "${{ github.event.head_commit.id }}"}'
token: ${{ secrets.LINTER_TRIGGER_WORKFLOW_TOKEN }}

- name: Trigger workflow in flathub-infra/flatpak-github-actions
uses: peter-evans/repository-dispatch@v3
with:
repository: flathub-infra/flatpak-github-actions
event-type: trigger-workflow
token: ${{ secrets.LINTER_TRIGGER_WORKFLOW_TOKEN }}

0 comments on commit 08e2efb

Please sign in to comment.