Skip to content

Commit

Permalink
test: add test for no relocking
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Aug 27, 2024
1 parent faa0aea commit 75f778b
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,37 @@ jobs:
fi
grep numpy conda-lock.yml
grep python conda-lock.yml
grep blah conda-lock.yml
env:
GH_TOKEN: ${{ secrets.GH_PAT }}

- name: close PR
- name: relock again
id: relock_again
uses: ./
with:
environment-file: test-env.yml
lock-file: conda-lock.yml
ignored-packages: ''
relock-all-packages: false
github-token: ${{ secrets.GH_PAT }}
automerge: false
base-branch: ${{ github.head_ref }}

- name: did it not relock?
if: steps.relock_again.outputs.relocked == 'true'
run: exit 1

- name: close PR \#1
if: always()
continue-on-error: true
shell: bash
run: gh pr close ${{ steps.relock.outputs.pull-request-number }}
env:
GH_TOKEN: ${{ secrets.GH_PAT }}

- name: close PR \#2
if: always()
continue-on-error: true
shell: bash
run: gh pr close ${{ steps.relock_again.outputs.pull-request-number }}
env:
GH_TOKEN: ${{ secrets.GH_PAT }}

0 comments on commit 75f778b

Please sign in to comment.