UHB Test Scheduler #1840
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: UHB Test Scheduler | |
on: | |
schedule: | |
- cron: "29 11 * * *" | |
env: | |
GIT_NAME: "${{ secrets.GIT_BOT_NAME }}" | |
GIT_EMAIL: "${{ secrets.GIT_BOT_EMAIL }}" | |
GITHUB_TOKEN: "${{ secrets.BOT_REPO_PAT }}" | |
jobs: | |
trigger: | |
name: Trigger action | |
runs-on: "${{ matrix.os }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
python_version: | |
- "3.11" | |
os: | |
- ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Clone repository | |
with: | |
token: "${{ secrets.BOT_REPO_PAT }}" | |
- name: Create local change | |
run: | | |
date +%s > "${{ github.workspace }}/.trigger" | |
- name: Commit changes | |
run: | | |
git config --local user.email "$GIT_EMAIL" | |
git config --local user.name "$GIT_NAME" | |
git commit -m "[Ultimate Hosts Blacklist][Test Scheduler]" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.BOT_REPO_PAT }} | |
branch: ${{ github.ref }} |