From 03209698bfac0c578424792e9f1e97b4b191a7d7 Mon Sep 17 00:00:00 2001 From: losuler Date: Tue, 3 May 2022 02:29:43 +1000 Subject: [PATCH] fix: not capturing update check output --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 722d296..0259e31 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,11 +13,14 @@ jobs: - uses: actions/checkout@v3 - name: Run update check - run: echo "update_status=$(bash check-updates.sh)" >> $GITHUB_ENV + #run: echo "update_status=$(bash check-updates.sh)" >> $GITHUB_ENV + run: echo "::set-output name=STATUS::$(bash check-updates.sh)" + id: update - name: Open pull request # https://docs.github.com/en/actions/learn-github-actions/expressions - if: contains(env.update_status, ">") + #if: contains(env.update_status, 'no new') + if: contains(steps.update.outputs.STATUS, 'no new') uses: repo-sync/pull-request@v2 with: destination_branch: "master"