From 5dd17cacaec515653792c03d72d7887dc9a7ed11 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Tue, 28 Jul 2020 17:57:07 +0100 Subject: [PATCH] Set array in earlier job using JSON --- .github/workflows/pr-annotate-with-flake8.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-annotate-with-flake8.yml b/.github/workflows/pr-annotate-with-flake8.yml index df8926c2..3028154e 100644 --- a/.github/workflows/pr-annotate-with-flake8.yml +++ b/.github/workflows/pr-annotate-with-flake8.yml @@ -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