Skip to content

Heritage GitHub feed #105

Heritage GitHub feed

Heritage GitHub feed #105

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Heritage GitHub feed
on:
schedule:
- cron: '55 13 * * 5'
permissions:
contents: read
jobs:
build:
environment: scheduled_report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: it_IT.UTF-8
env:
LANG: "it_IT.UTF-8"
run: |
sudo locale-gen ${{ env.LANG }}
sudo update-locale ${{ env.LANG }}
- name: Run GitHub feed -
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_COMPANY_REPOSITORIES: ${{ secrets.GH_COMPANY_REPOSITORIES }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
run: |
python src/main.py