Skip to content

Update post-github-activity-star.yml #19

Update post-github-activity-star.yml

Update post-github-activity-star.yml #19

name: Post - Github activity (stars)
on:
watch:
types: [started]
jobs:
watch-star:
runs-on: ubuntu-latest
steps:

Check failure on line 11 in .github/workflows/post-github-activity-star.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/post-github-activity-star.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
- name: Check out code
uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip' # caching pip dependencies
- name: Install pip packages
run: |
pip install python-graphql-client
pip install python-dateutil
pip install requests
working-directory: ${{ github.workspace }}
# Star/watch related event
- name: Run script post-discord-message.py for stars
run: |
python scripts/discord/post-discord-message.py
working-directory: ${{ github.workspace }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_MAIN_WEBHOOK_URL }}
MESSAGE: ":fire: :fire: Come ON :fire: :fire: \nOne new :star: for SOFA on Github from ${{github.event.sender.login}} (${{github.event.repository.stargazers_count}})!"
BOT_NAME: "SOFA Github bot"
EMBEDS_TITLE: ""
EMBEDS_URL: ""
EMBEDS_DESCRIPTION: ""