Costs Report #152
This file contains hidden or 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: Costs Report | |
| on: | |
| schedule: | |
| - cron: "0 7 * * MON" # mỗi Thứ Hai 14:00 ICT | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Generate COSTS.md | |
| run: | | |
| python scripts/gen_costs_report.py | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| title: "chore(docs): update COSTS.md (weekly)" | |
| commit-message: "chore(docs): update COSTS.md (weekly)" | |
| branch: "bot/update-costs-md" | |
| base: "main" | |
| delete-branch: true | |
| add-paths: | | |
| reports/COSTS.md |