From 35d6813963b3f82c5d07f3602cc5e6decd12f53e Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Thu, 15 Sep 2022 14:07:58 +0200 Subject: [PATCH] Add secret for repo sync (#11309) * Add secret for repo sync Signed-off-by: Julien Pivotto * Add name for repo_sync Signed-off-by: Julien Pivotto * Update token for funcbench Signed-off-by: Julien Pivotto Signed-off-by: Julien Pivotto --- .github/workflows/funcbench.yml | 2 +- .github/workflows/repo_sync.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/funcbench.yml b/.github/workflows/funcbench.yml index 6583aa95b..c7245c60a 100644 --- a/.github/workflows/funcbench.yml +++ b/.github/workflows/funcbench.yml @@ -12,7 +12,7 @@ jobs: BRANCH: ${{ github.event.client_payload.BRANCH }} BENCH_FUNC_REGEX: ${{ github.event.client_payload.BENCH_FUNC_REGEX }} PACKAGE_PATH: ${{ github.event.client_payload.PACKAGE_PATH }} - GITHUB_TOKEN: ${{ secrets.PROMBOT_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PROMBOT_GITHUB_TOKEN }} GITHUB_ORG: prometheus GITHUB_REPO: prometheus GITHUB_STATUS_TARGET_URL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} diff --git a/.github/workflows/repo_sync.yml b/.github/workflows/repo_sync.yml index ca8197878..37be80d45 100644 --- a/.github/workflows/repo_sync.yml +++ b/.github/workflows/repo_sync.yml @@ -1,4 +1,5 @@ --- +name: Sync repo files on: schedule: - cron: '44 17 * * *' @@ -10,3 +11,5 @@ jobs: steps: - uses: actions/checkout@v3 - run: ./scripts/sync_repo_files.sh + env: + GITHUB_TOKEN: ${{ secrets.PROMBOT_GITHUB_TOKEN }}