Aggiornamento FRITZ (GHA) 202607080912 del 08-07-2026 #959
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: NoAds Commit Counter | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| paths: | |
| - 'fritz/fritz_blacklist.txt' | |
| - 'experimental.txt' | |
| workflow_dispatch: | |
| jobs: | |
| count-commits: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v7.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set Timezone | |
| uses: szenius/set-timezone@v2.0 | |
| with: | |
| timezoneLinux: "Europe/Rome" | |
| - name: Set date and time | |
| run: bash ./sh/parts/datetime.sh | |
| - name: Count Commits | |
| run: | | |
| COMMIT_COUNT=$(git rev-list --count HEAD) | |
| echo "Commit count: $COMMIT_COUNT" | |
| echo $COMMIT_COUNT > vcheck/check_gh.txt | |
| - name: Commit updated counter | |
| run: | | |
| git config --local user.email "114237374+GWall-bot@users.noreply.github.com" | |
| git config --local user.name "GWall[bot]" | |
| git add vcheck/check_gh.txt | |
| git diff --cached --quiet || git commit -m "Commit Counter del $lastmodified" | |
| - name: Push changes | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: ${{ github.ref }} |