Update index.js #4
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
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 }} |