fix: only update if it's still open

This commit is contained in:
Simon Hyll
2024-08-30 13:32:09 +02:00
committed by GitHub
parent 79988ed56c
commit 44a2ea1e45

View File

@@ -56,6 +56,7 @@ jobs:
#===== END ISSUES =====#
- name: Set fields
if: ${{ github.event.issue.status == 'open' || github.event.pull_request.status == 'open' }}
env:
GH_TOKEN: ${{ secrets.TEST_TOKEN }}
run: gh project item-edit --id ${{ env.ITEM_ID }} --project-id ${{ env.PROJECT_ID }} --field-id ${{ env.STATUS_FIELD_ID }} --single-select-option-id ${{ env.STATUS_ID }}