forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Automatically tweet about good first issues (mui#21879)
Co-authored-by: Matt <github@nospam.33m.co>
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: contributor-twitter | ||
on: | ||
issues: | ||
types: [labeled] | ||
jobs: | ||
tweet: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# This has essentially zero costs and helps debugging if the workflow fails. | ||
- uses: hmarr/debug-action@master | ||
- uses: ethomson/send-tweet-action@v1 | ||
if: ${{ github.event.label.name == 'good first issue' && github.event.issue.state == 'open' }} | ||
with: | ||
status: > | ||
A new issue in the @materialui repository has been labelled as a good first issue. If you haven't contributed before, now's your chance! | ||
(Just check that it hasn't already been assigned to anyone before starting.) | ||
${{ github.event.issue.html_url }}" | ||
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} | ||
consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} | ||
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} | ||
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} |