Skip to content
Snippets Groups Projects
download_pgo.yml 639 B
Newer Older
name: "Update PGO performance profile"
on:
#  schedule:
#    - cron: "0 0 * * 2" # Every Tuesday at 00:00
  workflow_dispatch:
jobs:
Travis Ralston's avatar
Travis Ralston committed
  update_pgo:
    runs-on: ubuntu-latest
    permissions:
      contents: write
Travis Ralston's avatar
Travis Ralston committed
    env:
      PGO_MERGE: ${{ secrets.PGO_MERGE }}
    steps:
      - uses: actions/checkout@v4
      - name: "Download new pgo_media_repo.pprof"
Travis Ralston's avatar
Travis Ralston committed
        run: "curl -sv --fail -X POST -H \"Authorization: Bearer ${PGO_MERGE}\" https://pgo-mmr.t2host.io/v1/merge?and_combine=true > pgo_media_repo.pprof"
      - uses: stefanzweifel/git-auto-commit-action@v5
        with:
          commit_message: "Update pgo_media_repo.pprof"