increase build-number #295
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: increase build-number | |
on: | |
schedule: | |
- cron: "10 18 * * 1,5" | |
workflow_dispatch: | |
jobs: | |
report: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- name: increase build number | |
run: | |
python recipe/increase_build_number.py | |
- name: Create report file | |
run: date +%s > report.txt | |
- name: Commit report | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git commit -am "build_number +=1" | |
git push |