Skip to content

Updated to ignore input and output files #51

Updated to ignore input and output files

Updated to ignore input and output files #51

Workflow file for this run

name: update_readme
on:
push:
branches:
- main
workflow_dispatch:
jobs:
update_readme:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r scripts/requirements.txt
- name: Set commit message in env
run: |
echo "COMMIT_MSG=Updated Logs" >> $GITHUB_ENV
- name: import GPG keys
uses: crazy-max/ghaction-import-gpg@v5
with:
git_commit_signingkey: true
git_user_signingkey: true
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: execute python script
working-directory: scripts
run: |
python add_question.py
- name: commit files
run: |
git add -A
git diff-index --quiet HEAD || (git commit -S -a -m "${{env.COMMIT_MSG}}" --allow-empty)
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main