Skip to content

Refresh index

Refresh index #32

Workflow file for this run

name: Refresh index
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
#push:
# branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# don't run if the push was done by an action (like this one) in order to avoid infinite loops
if: github.actor != 'Github Action' && github.actor != 'actions-user'
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.11.1' # install the python version needed
# Runs a single command using the runners shell
- name: refresh index
run: python create_index.py
- name: commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git commit --allow-empty -m "refreshing index" -a
- name: push changes
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master