-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Changed files reusable workflow | ||
on: | ||
workflow_call: | ||
inputs: | ||
files: | ||
required: true | ||
type: string | ||
outputs: | ||
any_changed: | ||
value: ${{ jobs.changed-files.outputs.any_changed }} | ||
|
||
jobs: | ||
changed-files: | ||
timeout-minutes: 5 | ||
runs-on: depot-ubuntu-24.04-8 | ||
outputs: | ||
any_changed: ${{ steps.changed-files.outputs.any_changed }} | ||
steps: | ||
- name: Fetch custom Github Actions and base branch history | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Check for changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v45 | ||
with: | ||
files: ${{ inputs.files }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: CI final check reusable workflow | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
ci-server-final: | ||
if: always() && !cancelled() | ||
timeout-minutes: 1 | ||
runs-on: depot-ubuntu-24.04-8 | ||
steps: | ||
- run: echo ${{ needs.prerequisites.result }} | ||
- run: echo "${{ toJson(needs.*.result) }}" | ||
- name: Fail job if any needs failed ${{ needs }} | ||
if: contains(needs.*.result, 'failure') | ||
run: exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters