forked from pivvenit/list-queued-deployments-action
-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (28 loc) · 853 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
on: [push]
jobs:
deployments:
runs-on: ubuntu-latest
name: Test the action
outputs:
deployments: ${{ steps.deployments.outputs.deployments }}
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v2
- name: Test this repository
uses: ./ # Uses an action in the root directory
id: deployments
with:
repository: "${{ github.repository }}"
token: "${{ github.token }}"
job2:
needs: deployments
runs-on: ubuntu-latest
strategy:
matrix: ${{fromJson(needs.deployments.outputs.deployments)}}
steps:
- run: echo ${{ matrix.deployment_id }}
- run: echo ${{ matrix.status }}
- run: echo ${{ matrix.ref }}
- run: echo ${{ matrix.environment }}