Skip to content

Commit 86e0475

Browse files
authored
Enable lockfile refresh on forks via workflow_dispatch (#22)
1 parent 5bb3930 commit 86e0475

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/refresh-lockfiles.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
get_python_matrix:
2020
# Determines which Python versions should be included in the matrix used in
2121
# the gen_lockfiles job.
22-
if: "github.repository_owner == 'SciTools'"
22+
if: "github.repository_owner == 'SciTools' || github.event_name == 'workflow_dispatch'"
2323
runs-on: ubuntu-latest
2424
outputs:
2525
matrix: ${{ steps.get_py.outputs.matrix }}
@@ -31,7 +31,7 @@ jobs:
3131
gen_lockfiles:
3232
# This is a matrix job: it splits to create new lockfiles for each
3333
# of the CI test python versions.
34-
if: "github.repository_owner == 'SciTools'"
34+
if: "github.repository_owner == 'SciTools' || github.event_name == 'workflow_dispatch'"
3535
runs-on: ubuntu-latest
3636
needs: get_python_matrix
3737

@@ -60,7 +60,7 @@ jobs:
6060
# Once the matrix job has completed all the lock files will have been
6161
# uploaded as artifacts.
6262
# Download the artifacts, add them to the repo, and create a PR.
63-
if: "github.repository_owner == 'SciTools'"
63+
if: "github.repository_owner == 'SciTools' || github.event_name == 'workflow_dispatch'"
6464
runs-on: ubuntu-latest
6565
needs: gen_lockfiles
6666

0 commit comments

Comments
 (0)