From f9c1dd97cd80bcc7b176e49a6d5ff3ec51471c6c Mon Sep 17 00:00:00 2001 From: Felix Seifert Date: Fri, 12 Apr 2024 21:31:39 +0200 Subject: [PATCH] DO NOT MERGE: check secrets --- .github/workflows/secret.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/secret.yaml diff --git a/.github/workflows/secret.yaml b/.github/workflows/secret.yaml new file mode 100644 index 0000000..50f41a8 --- /dev/null +++ b/.github/workflows/secret.yaml @@ -0,0 +1,26 @@ +name: Secret checker + +on: + push: + pull_request: + +jobs: + checker: + + runs-on: ubuntu-latest + + steps: + - name: "Check if PYPI_USERNAME exists" + env: + USERNAME: ${{ secrets.PYPI_USERNAME }} + if: ${{ env.USERNAME == '' }} + run: | + echo "The secret \"PYPI_USERNAME\" has not been set." + echo "Please go to \"settings \> secrets \> actions\" to create it." + - name: "Check if PYPI_PASSWORD exists" + env: + PASSWORD: ${{ secrets.PYPI_PASSWORD }} + if: ${{ env.PASSWORD == '' }} + run: | + echo "The secret \"PYPI_PASSWORD\" has not been set." + echo "Please go to \"settings \> secrets \> actions\" to create it."