Skip to content

Commit e9e64e2

Browse files
wpk-nist-govgithub-actions[bot]
authored andcommitted
chore(template): accept new copier update
1 parent ee9c80b commit e9e64e2

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
44
command_line_interface: typer
55
conda_channel: conda-forge

.github/workflows/update-copier.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ on:
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

713
concurrency:
814
group: ${{ github.workflow }}-${{ github.ref }}
@@ -14,6 +20,7 @@ permissions:
1420

1521
env:
1622
COPIER_OPTIONS: "--trust -A -r main -c 3"
23+
AUTOMERGE: "false"
1724

1825
jobs:
1926
update:
@@ -76,7 +83,7 @@ jobs:
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:

0 commit comments

Comments
 (0)