Skip to content

Commit 711ea30

Browse files
Update pin-conda-envs.yaml (#55)
1 parent 5a7673c commit 711ea30

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

.github/workflows/pin-conda-envs.yaml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,23 @@ jobs:
2525
uses: actions/checkout@v5
2626
with:
2727
fetch-depth: 0
28-
29-
- name: Fail if update branch already exists
30-
run: |
31-
if git ls-remote --exit-code --heads origin "${BRANCH_NAME}" >/dev/null 2>&1; then
32-
echo "Branch ${BRANCH_NAME} already exists on origin."
33-
exit 1
34-
fi
28+
ref: main
3529

3630
- name: Pin conda environments
3731
uses: snakemake/snakedeploy-github-action@v1
3832
with:
3933
subcommand: pin-conda-envs
4034
args: workflow/envs/*.yaml
4135

42-
- name: Commit linux-64 pin updates
43-
uses: stefanzweifel/git-auto-commit-action@v7
44-
with:
45-
commit_message: "update linux-64 conda pins"
46-
file_pattern: workflow/envs/*.linux-64.pin.txt
47-
branch: ${{ env.BRANCH_NAME }}
48-
create_branch: true
49-
5036
- name: Create or update pull request
5137
uses: peter-evans/create-pull-request@v8
5238
with:
5339
token: ${{ github.token }}
5440
branch: ${{ env.BRANCH_NAME }}
5541
base: main
42+
add-paths: workflow/envs/*.linux-64.pin.txt
43+
commit-message: "update linux-64 conda pins"
5644
title: "Update conda env pins"
5745
body: |
5846
Automated conda pin refresh generated by the pin-conda-envs workflow.
59-
draft: false
47+
draft: false

0 commit comments

Comments
 (0)