ci: Run actions on merge_group (#423)

* ci: Run actions on merge_group

* fix: update conditional steps

* fix: don't dupe action run for lint

* refactor: simplify condition
This commit is contained in:
lleyton
2023-05-06 23:46:48 -07:00
committed by GitHub
parent 92bdd83b1b
commit 551eeda96c
2 changed files with 18 additions and 7 deletions
+8 -5
View File
@@ -10,6 +10,9 @@ on:
pull_request:
branches:
- f38
merge_group:
branches:
- f38
workflow_dispatch:
workflow_call:
@@ -51,14 +54,14 @@ jobs:
fetch-depth: 0
- uses: terrapkg/anda-build@main
if: github.event_name == 'pull_request'
if: github.event_name != 'push'
with:
name: "${{ matrix.pkg.pkg }}"
mockConfig: anda-${{ matrix.version }}-${{ matrix.pkg.arch }}
andaRepo: https://github.com/terrapkg/subatomic-repos/raw/main/terra${{ matrix.version }}.repo
- uses: terrapkg/anda-build@main
if: github.event_name != 'pull_request'
if: github.event_name == 'push'
with:
name: "${{ matrix.pkg.pkg }}"
mockConfig: anda-${{ matrix.version }}-${{ matrix.pkg.arch }}
@@ -78,7 +81,7 @@ jobs:
path: anda-build/rpm/rpms/*
- name: Upload packages to subatomic
if: github.event_name != 'pull_request'
if: github.event_name == 'push'
run: |
subatomic-cli upload --prune \
--server https://subatomic.fyralabs.com \
@@ -86,8 +89,8 @@ jobs:
terra${{ matrix.version }} anda-build/rpm/rpms/*
- name: Notify Madoguchi (Success)
if: success() && github.event_name != 'pull_request'
if: success() && github.event_name == 'push'
run: ./.github/workflows/mg.sh true ${{matrix.pkg.pkg}} ${{matrix.version}} ${{matrix.pkg.arch}} ${{github.run_id}} ${{secrets.MADOGUCHI_JWT}}
- name: Notify Madoguchi (Failure)
if: ( cancelled() || failure() ) && github.event_name != 'pull_request'
if: ( cancelled() || failure() ) && github.event_name == 'push'
run: ./.github/workflows/mg.sh false ${{matrix.pkg.pkg}} ${{matrix.version}} ${{matrix.pkg.arch}} ${{github.run_id}} ${{secrets.MADOGUCHI_JWT}}
+10 -2
View File
@@ -1,7 +1,15 @@
name: Lint
on: [push, pull_request]
on:
push:
branches:
- f38
pull_request:
branches:
- f38
merge_group:
branches:
- f38
jobs:
lint:
runs-on: ubuntu-latest