[go: nahoru, domu]

Skip to content

Commit

Permalink
Switch fully to reuseable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
oblivioncth committed Aug 29, 2024
1 parent cfce756 commit 0d2d36c
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 123 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-qx.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
name: Qx Push Reaction
name: Build Project
on:
workflow_dispatch:
push:
branches-ignore:
- 'master'
workflow_run:
workflows: Tag and Sync
types: completed
branches: master

jobs:
trigger-windows-build:
name: Build Qx
trigger-build:
name: Build Project
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
uses: oblivioncth/actions/.github/workflows/build-cxx-project.yml@feature/upgrades
secrets:
ffynnon_cred: ${{ secrets.OBYBOT_FFYNNON_CREDS }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Master pull-request checks
name: Check Release PR When Opened
on:
pull_request:
types: [opened, synchronize, reopened]
branches: master

jobs:
check-pr-correctness:
name: Master PR correctness check
name: Release PR correctness check
runs-on: windows-latest
steps:
- name: Ensure higher version
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/generate-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Generate Release
on:
workflow_run:
workflows: Build Project
types: completed
branches: master

jobs:
generate_release:
name: Generate Release
if: github.event.workflow_run.conclusion == 'success'
uses: oblivioncth/actions/.github/workflows/generate-cxx-release.yml@feature/upgrades
with:
artifacts_run_id: ${{ github.event.workflow_run.id }}

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pull-request auto-labeler
name: Label PR When Opened
on:
pull_request:
types: [opened]
Expand Down
117 changes: 0 additions & 117 deletions .github/workflows/master-pull-request-merge-reaction.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/tag-release-commit-and-sync-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Tag and Sync
on:
pull_request:
types: [closed]
branches:
- 'master'

jobs:
tag_master_and_sync_dev:
name: Tag master merge commit, FF back to dev
if: github.event.pull_request.merged == true
uses: oblivioncth/actions/.github/workflows/tag-main-and-sync-dev.yml@feature/upgrades

0 comments on commit 0d2d36c

Please sign in to comment.