Skip to content

Commit 01c8d25

Browse files
committed
ci: update workflow tests
1 parent fab20eb commit 01c8d25

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

.github/workflows/danger-workflow-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ on:
88
jobs:
99
danger:
1010
uses: ./.github/workflows/danger.yml
11+
12+
test-outputs:
13+
runs-on: ubuntu-latest
14+
needs: danger
15+
steps:
16+
- run: "[[ '${{ needs.danger.outputs.outcome }}' == 'success' ]]"

.github/workflows/danger.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Runs DangerJS with a pre-configured set of rules on a Pull Request.
22
on:
3-
workflow_call
3+
workflow_call:
4+
outputs:
5+
outcome:
6+
description: Whether the Danger run finished successfully. Possible values are success, failure, cancelled, or skipped.
7+
value: ${{ jobs.danger.steps.danger.outcome }}
48

59
jobs:
610
danger:
@@ -15,6 +19,7 @@ jobs:
1519

1620
# Using a pre-built docker image in GitHub container registry instaed of NPM to reduce possible attack vectors.
1721
- name: Run DangerJS
22+
id: danger
1823
run: |
1924
docker run \
2025
--volume ${{ github.workspace }}:/github/workspace \

.github/workflows/updater-scripts-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This isn't a reusable workflow but an actual CI action for this repo itself - to test scripts.
2-
name: Update Script Tests
2+
name: Updater Script Tests
33

44
on:
55
push:

.github/workflows/updater-workflow-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This isn't a reusable workflow but an actual CI action for this repo itself - to test the workflows.
2-
name: Update Workflow Tests
2+
name: Updater Workflow Tests
33

44
on:
55
push:

0 commit comments

Comments
 (0)