Merge branch 'main' of https://github.com/drew-wks/ASK #126
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Empty GitHub Commit (triggers Streamlit update) | |
# Prevents app from going into inactive mode by making an empty | |
# commit, thus triggering an update on Streamlit Community Cloud | |
# applies to multiple branches as specified below | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 15 * * *' # Daily at 3pm | |
push: | |
branches: | |
- main | |
- v1 | |
- test | |
permissions: | |
contents: write | |
jobs: | |
Empty_commit_job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Check out repo | |
- name: Set up Git | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
- name: Make Empty Commit | |
run: git commit --allow-empty -m "Empty-Commit" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |