1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-04 09:31:12 +03:00

Set array in earlier job using JSON

This commit is contained in:
Athanasius 2020-07-28 17:57:07 +01:00
parent 2375bf1995
commit 5dd17cacae

View File

@ -11,12 +11,21 @@ on:
branches: [ develop ]
jobs:
set_allowed:
runs-on: ubuntu-18.04
outputs:
matrix: ${{ steps.set-allowed.outputs.allowed }}
steps:
- id: set-allowed
run: echo "::set-output name=allowed::{['Athanasius']}"
flake8_annotate:
runs-on: ubuntu-18.04
needs: set_allowed
steps:
- name: Checkout
if: ${{ contains(['Athanasius'], github.actor) }}
if: ${{ contains(${{fromJson(needs.set_allowed.outputs.allowed)}}, github.actor) }}
uses: actions/checkout@v2
with:
fetch-depth: 0