hermes open source project recommendation #693
This file contains hidden or 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
| name: hermes open source project recommendation | |
| on: | |
| schedule: | |
| - cron: "0 8 * * *" | |
| jobs: | |
| send-message: | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| working-directory: ./osscameroon-website/bots/hermes | |
| name: Send message | |
| runs-on: ubuntu-latest | |
| steps: | |
| # No custom token: relies on osscameroon/osscameroon-website being | |
| # reachable by GITHUB_TOKEN (i.e. publicly readable). If the target | |
| # ever goes private, reintroduce `token:` here. | |
| - name: Checkout osscameroon-website | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: osscameroon/osscameroon-website | |
| path: osscameroon-website | |
| - name: Set up Python 3.8 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.8 | |
| - name: Install dependencies | |
| run: | | |
| pwd | |
| python -m pip install --upgrade pip | |
| pwd | |
| pip install virtualenv | |
| pwd | |
| make install-deps | |
| - name: send message | |
| env: | |
| GOOGLE_APPLICATION_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_APPLICATION_SERVICE_ACCOUNT }} | |
| TELEGRAM_TOKEN: ${{ secrets.HERMES_TELEGRAM_BOT_TOKEN }} | |
| TELEGRAM_CHANNEL_ID: ${{ secrets.TELEGRAM_OSSCAMEROON_CHANNEL_ID }} | |
| CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} | |
| CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }} | |
| API_KEY: ${{ secrets.TWITTER_API_KEY }} | |
| API_SECRET: ${{ secrets.TWITTER_API_SECRET }} | |
| run: | | |
| mkdir .secrets/ | |
| echo $GOOGLE_APPLICATION_SERVICE_ACCOUNT > ./.secrets/service-account.json | |
| make run |