File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2- _commit : v0.9.0
2+ _commit : v0.9.0-23-g09afd92
33_src_path : https://github.com/usnistgov/cookiecutter-nist-python.git
44command_line_interface : typer
55conda_channel : conda-forge
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ jobs:
125125 echo "prek_version=${prek_version}" >> "$GITHUB_ENV"
126126
127127 - name : Setup prek
128- uses : j178/prek-action@0bb87d7f00b0c99306c8bcb8b8beba1eb581c037 # v1.1 .0
128+ uses : j178/prek-action@79f765515bd648eb4d6bb1b17277b7cb22cb6468 # v2.0 .0
129129 with :
130130 prek-version : ${{ env.prek_version }}
131131 install-only : true
Original file line number Diff line number Diff line change 33 schedule :
44 - cron : " 0 2 * * 1" # Every Monday at 2am
55 workflow_dispatch :
6+ inputs :
7+ automerge :
8+ description : " enable automerge"
9+ required : false
10+ type : boolean
11+ default : false
612
713concurrency :
814 group : ${{ github.workflow }}-${{ github.ref }}
@@ -14,6 +20,7 @@ permissions:
1420
1521env :
1622 COPIER_OPTIONS : " --trust -A -r main -c 3"
23+ AUTOMERGE : " false"
1724
1825jobs :
1926 update :
7683 conflict_message="Resolve conflicts."
7784 commit_message="$commit_message [skip ci]"
7885 # check for new untracked files
79- elif [ -n "$( git status --untracked-files=normal --porcelain)" ] ; then
86+ elif git status --porcelain | grep -q '^??' ; then
8087 automergeable='false'
8188 fi
8289 fi
96103 git config --global user.name "github-actions[bot]"
97104 git restore --staged .
98105 fi
99- shell : bash -euxo pipefail {0}
106+ shell : bash -euxo {0}
100107
101108 - name : Create pull request
102109 if : steps.check.outputs.changed == 'true'
@@ -140,7 +147,8 @@ jobs:
140147
141148 - name : automerge
142149 if :
143- ${{ steps.cpr.outputs.pull-request-number &&
150+ ${{ (inputs.automerge || env.AUTOMERGE == 'true') &&
151+ steps.cpr.outputs.pull-request-number &&
144152 steps.check.outputs.conflict_message == '' &&
145153 steps.check.outputs.automergeable == 'true' }}
146154 env :
Original file line number Diff line number Diff line change 1717 - repo : meta
1818 hooks :
1919 - id : check-hooks-apply
20- stages : [manual]
2120 - id : check-useless-excludes
22- stages : [manual]
2321
2422 # * sync dependencies
2523 - repo : https://github.com/wpk-nist-gov/sync-pre-commit-hooks
@@ -151,7 +149,7 @@ repos:
151149 - " --custom-command=prek run pyproject2conda-project --all-files"
152150 # ** uv
153151 - repo : https://github.com/astral-sh/uv-pre-commit
154- rev : 0.11.0
152+ rev : 0.11.1
155153 hooks :
156154 - id : uv-lock
157155 alias : requirements
You can’t perform that action at this time.
0 commit comments