diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 14087cf..3f5cbc3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }}