Set array in earlier job using JSON

This commit is contained in:
Athanasius committed 2020-07-28 17:57:07 +01:00
1 parent 72c201c5a1
commit 8b863c5efd
1 file changed
+10 -1
+10 -1
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