Skip to content

Commit

Permalink
Merge pull request #402 from webknjaz/patch-2
Browse files Browse the repository at this point in the history
Uninvent the wheel w/ `re-actors/alls-green` @ GHA
  • Loading branch information
adiroiban authored Aug 28, 2022
2 parents 5bf0a46 + f911402 commit 4c854f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ jobs:

- name: Publish to PyPI - on tag
if: startsWith(github.ref, 'refs/tags/')
uses: pypa/gh-action-pypi-publish@v1.4.2
uses: pypa/gh-action-pypi-publish@37f50c210e3d2f9450da2cd423303d6a14a6e29f
with:
password: ${{ secrets.PYPI_TOKEN }}
verbose: true
Expand All @@ -258,12 +258,6 @@ jobs:
- pypi-publish
steps:
- name: Require all successes
shell: python
env:
RESULTS: ${{ toJSON(needs.*.result) }}
run: |
import json
import os
import sys
results = json.loads(os.environ["RESULTS"])
sys.exit(0 if all(result == "success" for result in results) else 1)
uses: re-actors/alls-green@3a2de129f0713010a71314c74e33c0e3ef90e696
with:
jobs: ${{ toJSON(needs) }}
Empty file.

0 comments on commit 4c854f5

Please sign in to comment.