Main #246
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: Main | |
on: | |
workflow_dispatch: | |
inputs: | |
search-date: | |
type: string | |
description: 'Search date(yyyy-MM-dd)' | |
schedule: | |
- cron: "0 15 * * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
GIT_AUTHOR_NAME: github-actions[bot] | |
GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com | |
GIT_COMMITTER_NAME: github-actions[bot] | |
GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com | |
jobs: | |
daily-summary: | |
runs-on: ubuntu-22.04 | |
env: | |
GH_TOKEN: ${{ github.token }} | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Daily summary | |
run: ./summary.sh daily | |
env: | |
BRANCH: master,branch-3.0,branch-2.11,branch-2.10 | |
SEARCH_DATE: ${{ github.event.inputs.search-date }} | |
- name: Push | |
run: | | |
git add daily | |
if [[ "$(git status --porcelain)" == "" ]]; then | |
echo "No changes"; | |
exit 0; | |
fi | |
git commit -m "chore: daily summary" -s | |
git push origin |