Workflow for update adzans #46
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: Workflow for update adzans | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
#- cron: "0 0 1 * *" # UTC | |
# thanks: https://stackoverflow.com/a/16603902 | |
- cron: 0 17 30 4,6,9,11 * | |
- cron: 0 17 31 1,3,5,7,8,10,12 * | |
- cron: 0 17 28,29 2 * | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Update adzans | |
uses: ./.github/action-update-adzans/ | |
# env: | |
# JWO_MONTH: '02' | |
# JWO_YEAR: '2021' | |
- name: Commit changes | |
uses: EndBug/[email protected] | |
with: | |
message: "[gh-actions] update adzans" | |
author_name: github-actions | |
author_email: 41898282+github-actions[bot]@users.noreply.github.com | |
push: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |