From e14ba539a775e7576aa4ebbfebdfe14eeb305ae1 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Wed, 1 Feb 2023 02:06:36 +0200 Subject: [PATCH] ci: make a post in reddit on new release --- .github/workflows/update-latest.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/update-latest.yml b/.github/workflows/update-latest.yml index 22a34995dd..be2c7132bf 100644 --- a/.github/workflows/update-latest.yml +++ b/.github/workflows/update-latest.yml @@ -36,3 +36,16 @@ jobs: with: identifier: pnpm.pnpm token: ${{ secrets.WINGET_TOKEN }} + + post-to-reddit: + runs-on: ubuntu-latest + steps: + - uses: bluwy/release-for-reddit-action@v1 + with: + username: ${{ secrets.REDDIT_USERNAME }} + password: ${{ secrets.REDDIT_PASSWORD }} + app-id: ${{ secrets.REDDIT_APP_ID }} + app-secret: ${{ secrets.REDDIT_APP_SECRET }} + subreddit: pnpm + title: pnpm@${{ github.event.inputs.version }} is out! + url: https://github.com/pnpm/pnpm/releases/tag/v${{ github.event.inputs.version }}