From b566bfb0dcdcd86fa9d349875eba15e647c06459 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 23 Aug 2022 17:27:44 +0200 Subject: [PATCH 1/4] Uninvent the wheel w/ `re-actors/alls-green` @ GHA --- .github/workflows/ci.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f716b70f..13a27556 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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@release/v1 + with: + jobs: ${{ toJSON(needs) }} From 675219a6deac7c65bb94b72da55059b7077e5ec4 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 23 Aug 2022 17:30:51 +0200 Subject: [PATCH 2/4] Add a dummy change note for PR #402 --- src/towncrier/newsfragments/402.misc.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/towncrier/newsfragments/402.misc.rst diff --git a/src/towncrier/newsfragments/402.misc.rst b/src/towncrier/newsfragments/402.misc.rst new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/src/towncrier/newsfragments/402.misc.rst @@ -0,0 +1 @@ + From a814202234214182855fe4a5ffb40c7f7aec2b04 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 23 Aug 2022 15:31:54 +0000 Subject: [PATCH 3/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/towncrier/newsfragments/402.misc.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/src/towncrier/newsfragments/402.misc.rst b/src/towncrier/newsfragments/402.misc.rst index 8b137891..e69de29b 100644 --- a/src/towncrier/newsfragments/402.misc.rst +++ b/src/towncrier/newsfragments/402.misc.rst @@ -1 +0,0 @@ - From f911402b69960bee358b0c2011d685721afa9454 Mon Sep 17 00:00:00 2001 From: Adi Roiban Date: Sun, 28 Aug 2022 18:42:55 +0100 Subject: [PATCH 4/4] Pin external github actions, --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13a27556..fc51b57c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -258,6 +258,6 @@ jobs: - pypi-publish steps: - name: Require all successes - uses: re-actors/alls-green@release/v1 + uses: re-actors/alls-green@3a2de129f0713010a71314c74e33c0e3ef90e696 with: jobs: ${{ toJSON(needs) }}