github-action-extensions: GitHub clones counter for 14 days at every 24 hours and clones accumulator
github-action-extensions: GitHub clones counter for 14 days at every 24 hours and clones accumulator #521
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
# Tutorial to use with: https://github.com/andry81-devops/github-accum-stats | |
# | |
name: "github-action-extensions: GitHub clones counter for 14 days at every 24 hours and clones accumulator" | |
on: | |
schedule: | |
- cron: "0 */24 * * *" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
accum-gh-clone-stats: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: andry81-devops/gh-action--accum-gh-stats@master | |
with: | |
deps_repo_owner: andry81-devops | |
deps_repo_branch: master | |
deps_repo_read_token: ${{ github.token }} | |
stat_repo_owner: andry81-devops | |
stat_repo: github-action-extensions | |
stat_entity: clones | |
stat_repo_read_token: ${{ secrets.READ_STATS_TOKEN }} | |
curl_flags: >- | |
-H 'Cache-Control: no-cache' | |
output_repo_owner: andry81-stats | |
output_repo: github-action-extensions--gh-stats | |
output_repo_branch: master | |
output_repo_dir: traffic/clones | |
# NOTE: You should use something like `secrets.WRITE_STATS_TOKEN` if the input and the output repository has different owners. | |
output_repo_write_token: ${{ secrets.READ_STATS_TOKEN }} | |
flags: >- | |
ENABLE_PRINT_INITIAL_ENV_INTO_STDOUT=1 | |
env: >- | |
ENABLE_GENERATE_CHANGELOG_FILE=1 | |
ENABLE_COMMIT_MESSAGE_DATE_WITH_TIME=1 | |
ENABLE_COMMIT_MESSAGE_DATE_TIME_WITH_LAST_CHANGED_DATE_OFFSET=1 | |
ENABLE_COMMIT_MESSAGE_WITH_WORKFLOW_RUN_NUMBER=1 | |
ENABLE_GITHUB_ACTIONS_RUN_URL_PRINT_TO_CHANGELOG=1 | |
ENABLE_REPO_STATS_COMMITS_URL_PRINT_TO_CHANGELOG=1 |