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-6-gf86ad81
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 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 [ -n "$(git status --porcelain | grep '^??' )" ]; then
8087 automergeable='false'
8188 fi
8289 fi
@@ -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 :
You can’t perform that action at this time.
0 commit comments