From e5fcae8967b0710bd085f5cfa088c603c8fbb499 Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Thu, 30 Dec 2021 02:57:22 +0100 Subject: [PATCH 1/4] Tweet about the releases --- .github/workflows/tweet-release.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/tweet-release.yaml diff --git a/.github/workflows/tweet-release.yaml b/.github/workflows/tweet-release.yaml new file mode 100644 index 0000000..00df83f --- /dev/null +++ b/.github/workflows/tweet-release.yaml @@ -0,0 +1,27 @@ +--- +name: Tweet on Release + +# yamllint disable-line rule:truthy +on: + release: + types: [published] + +jobs: + twitter: + name: 🐦 Tweet the release + runs-on: ubuntu-latest + steps: + - uses: Eomm/why-don-t-you-tweet@v1 + with: + # GitHub event payload + # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release + tweet-message: | + ⬆️ ${{ github.event.release.tag_name }} of ${{ github.event.repository.name }} just released 🎉 #update @klaasnicolaas #python #package #release #bot #assistant + + Check out the release notes here: ${{ github.event.release.html_url }} + env: + # Get your tokens from https://developer.twitter.com/apps + TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }} + TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} + TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} + TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} From 24ad35dbcd5e8586b67b371314994882075af65a Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Thu, 30 Dec 2021 03:06:58 +0100 Subject: [PATCH 2/4] Add python 3.10 to tests --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b7e02d6..18235dd 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -11,7 +11,7 @@ jobs: strategy: matrix: os: [ubuntu, windows, macos] - python: [3.8, 3.9] + python: ['3.8', '3.9', '3.10'] steps: - name: ⤵️ Check out code from GitHub uses: actions/checkout@v2.4.0 From d4b269584d8a10c46a34ad14afc6c923eeb55904 Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Thu, 30 Dec 2021 03:11:05 +0100 Subject: [PATCH 3/4] Add extra hashtag --- .github/workflows/tweet-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tweet-release.yaml b/.github/workflows/tweet-release.yaml index 00df83f..7f16291 100644 --- a/.github/workflows/tweet-release.yaml +++ b/.github/workflows/tweet-release.yaml @@ -16,7 +16,7 @@ jobs: # GitHub event payload # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release tweet-message: | - ⬆️ ${{ github.event.release.tag_name }} of ${{ github.event.repository.name }} just released 🎉 #update @klaasnicolaas #python #package #release #bot #assistant + ⬆️ ${{ github.event.release.tag_name }} of ${{ github.event.repository.name }} just released 🎉 #update @klaasnicolaas #python #package #pure_energie #release #bot #assistant Check out the release notes here: ${{ github.event.release.html_url }} env: From 21dd30a79ec105f70bd4b866aa1f07c3a1f6542e Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Thu, 30 Dec 2021 03:19:46 +0100 Subject: [PATCH 4/4] Update label for maintainability --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bff9fa8..3a4177f 100644 --- a/README.md +++ b/README.md @@ -163,7 +163,7 @@ SOFTWARE. [license-shield]: https://img.shields.io/github/license/klaasnicolaas/python-pem.svg [last-commit-shield]: https://img.shields.io/github/last-commit/klaasnicolaas/python-pem.svg [maintenance-shield]: https://img.shields.io/maintenance/yes/2021.svg -[maintainability-shield]: https://api.codeclimate.com/v1/badges/443c476612a574d82467/maintainability +[maintainability-shield]: https://api.codeclimate.com/v1/badges/0b3297077cbc525a837e/maintainability [maintainability-url]: https://codeclimate.com/github/klaasnicolaas/python-pem/maintainability [project-stage-shield]: https://img.shields.io/badge/project%20stage-experimental-yellow.svg [pypi]: https://pypi.org/project/pure_energie/