fix: not capturing update check output
This commit is contained in:
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@ -13,11 +13,14 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Run update check
|
- 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
|
- name: Open pull request
|
||||||
# https://docs.github.com/en/actions/learn-github-actions/expressions
|
# 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
|
uses: repo-sync/pull-request@v2
|
||||||
with:
|
with:
|
||||||
destination_branch: "master"
|
destination_branch: "master"
|
||||||
|
Reference in New Issue
Block a user