Skip to content

dataupdater

dataupdater #1128

Workflow file for this run

name: dataupdater
on:
push:
branches:
- '*'
schedule:
- cron: '0 0 * * *' # Once per day at midnight
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pygithub==2.5.0
- name: Run update script
env:
MYTHIC_AGENTS_GITHUB_TOKEN: ${{ secrets.MYTHIC_AGENTS_GITHUB_TOKEN }}
MYTHIC_C2_GITHUB_TOKEN: ${{ secrets.MYTHIC_C2_GITHUB_TOKEN }}
run: |
python get_repo_data.py
- name: commit updated repo information
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git commit -a -m "update data via action"
- name: push changes
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.MYTHIC_META_GITHUB_TOKEN }}
branch: main