Skip to content

updates_weekly

updates_weekly #28

Workflow file for this run

name: updates_weekly
# Controls when the workflow will run
on:
# # Triggers the workflow on push or pull request events but only for the "main" branch
# push:
# branches: ["main"]
# pull_request:
# branches: ["main"]
schedule:
# run weekly
- cron: "5 8 * * 0"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
updates_weekly:
runs-on: ubuntu-latest
# continue-on-error: true
steps:
#### actions/checkout ____________________________________________________
# @see https://github.com/actions/checkout
- uses: actions/checkout@v3
#### setup-python ________________________________________________________
# @see https://github.com/actions/setup-python
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'pip' # caching pip dependencies
#### setup dependencies __________________________________________________
- run: pip install -r requirements.txt
#### main ________________________________________________________________
- run: |
git submodule init
git submodule update
cd oswm_codebase
git pull -r https://github.com/kauevestena/oswm_codebase
cd ..
- run: python oswm_codebase/getting_feature_versioning_data.py
#### upload ______________________________________________________________
# @see https://github.com/actions/checkout#push-a-commit-using-the-built-in-token
- run: |
DATETIME="$(TZ=":America/Sao_Paulo" date +"%Y-%m-%d")"
COMMIT_MESSAGE="weekly updates at $DATETIME"
git config user.name github-actions
git config user.email github-actions@github.com
git pull
git add .
git commit -m "$COMMIT_MESSAGE"
git push