Skip to content

Commit

Permalink
Sync actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimate-hosts-blacklist-bot committed Jan 24, 2021
1 parent 5ef1f78 commit 02a7488
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/scheduler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: UHB Test Scheduler
on:
schedule:
- cron: "0 */12 * * *"

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.9.1"
os:
- ubuntu-latest

steps:
- uses: actions/checkout@v2
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 "[Dead-Hosts::Infrastructure][AuthChecker]" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.BOT_REPO_PAT }}
branch: ${{ github.ref }}

0 comments on commit 02a7488

Please sign in to comment.