Skip to content

Commit 801aa53

Browse files
Merge pull request #297 from technote-space/chore/chore-sync-workflows
chore: sync workflows
2 parents b5229b6 + 4ea07fc commit 801aa53

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,21 @@ jobs:
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 10
1616
steps:
17+
- name: Set running flag
18+
run: echo "::set-env name=RUNNING::"
19+
- name: Set running flag
20+
run: echo "::set-env name=RUNNING::1"
21+
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id)
1722
- uses: technote-space/load-config-action@v1
23+
if: env.RUNNING
1824
with:
1925
CONFIG_FILENAME: workflow-settings.json
2026
- uses: technote-space/auto-cancel-redundant-job@v1
27+
if: env.RUNNING
2128
with:
2229
EXCLUDE_MERGED: 'true'
2330
- name: Update dependencies
31+
if: env.RUNNING
2432
id: update_deps
2533
uses: technote-space/create-pr-action@v2
2634
with:
@@ -37,11 +45,9 @@ jobs:
3745
TARGET_BRANCH_PREFIX: release/
3846
AUTO_MERGE_THRESHOLD_DAYS: 14
3947

40-
- name: Set running flag
41-
run: echo "::set-env name=RUNNING::"
4248
- name: Set running flag
4349
run: echo "::set-env name=RUNNING::1"
44-
if: steps.update_deps.outputs.result != 'succeeded' && github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.head_ref, 'release/')
50+
if: env.RUNNING && steps.update_deps.outputs.result != 'succeeded' && github.event_name == 'pull_request' && github.event.action != 'closed' && startsWith(github.head_ref, 'release/')
4551
- uses: actions/checkout@v2
4652
if: env.RUNNING
4753
- name: Set running flag

0 commit comments

Comments
 (0)