Skip to content

Commit

Permalink
fix requirements check (#7060)
Browse files Browse the repository at this point in the history
* fix requirements check (checkout)

* fix requirements check (checkout)

* echo requirements

* fix github actions YAML syntax

* use `if` block in requirements check
  • Loading branch information
zacharyburnett authored Oct 10, 2022
1 parent a15f2c1 commit ef206f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ jobs:
name: check that `requirements-sdp.txt` is populated
runs-on: ubuntu-latest
steps:
- run: "[[ -z $(grep -v '^ *#' requirements-sdp.txt) ]] && { echo \"requirements-sdp.txt is empty\" ; exit 1; }"
- uses: actions/checkout@v3
- run: grep -v '^ *#' requirements-sdp.txt
- run: if [[ -z $(grep -v '^ *#' requirements-sdp.txt) ]]; then echo requirements-sdp.txt is empty; exit 1; fi
publish:
needs: [ check ]
uses: spacetelescope/action-publish_to_pypi/.github/workflows/workflow.yml@master
Expand Down

0 comments on commit ef206f5

Please sign in to comment.