From 1d68e4be58c0ecfc874f60d570b25744fe4e2cb1 Mon Sep 17 00:00:00 2001 From: Robbie Lankford Date: Thu, 10 Feb 2022 20:57:21 -0600 Subject: [PATCH 1/6] add bump-formula-pr workflow jobs Signed-off-by: Robbie Lankford --- .github/workflows/bump-formula-pr.yml | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/bump-formula-pr.yml diff --git a/.github/workflows/bump-formula-pr.yml b/.github/workflows/bump-formula-pr.yml new file mode 100644 index 000000000000..d76b33e1a781 --- /dev/null +++ b/.github/workflows/bump-formula-pr.yml @@ -0,0 +1,44 @@ +name: bump-formula-pr +on: + push: + tags: + - 'v*' +jobs: + homebrew-core: + name: homebrew-core + runs-on: macos-latest + steps: + - name: Update Homebrew formula + uses: dawidd6/action-homebrew-bump-formula@v3 + with: + # Required, custom GitHub access token with the 'public_repo' and 'workflow' scopes + token: ${{secrets.TOKEN}} + # Optional, will create tap repo fork in organization + org: ORG + # Formula name, required + formula: grafana-agent + # Optional, will be determined automatically + tag: ${{github.ref}} + # Optional, will be determined automatically + revision: ${{github.sha}} + # Optional, if don't want to check for already open PRs + force: false # true + homebrew-grafana: + name: homebrew-core + runs-on: macos-latest + steps: + - name: Update Homebrew formula + uses: dawidd6/action-homebrew-bump-formula@v3 + with: + # Required, custom GitHub access token with the 'public_repo' and 'workflow' scopes + token: ${{secrets.TOKEN}} + # Optional, defaults to homebrew/core + tap: grafana/grafana + # Formula name, required + formula: grafana-agent + # Optional, will be determined automatically + tag: ${{github.ref}} + # Optional, will be determined automatically + revision: ${{github.sha}} + # Optional, if don't want to check for already open PRs + force: false # true From 54832a90de0687614ed6f182b77c7e0531587fbe Mon Sep 17 00:00:00 2001 From: Robert Lankford Date: Fri, 11 Feb 2022 11:10:03 -0600 Subject: [PATCH 2/6] Update .github/workflows/bump-formula-pr.yml --- .github/workflows/bump-formula-pr.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/bump-formula-pr.yml b/.github/workflows/bump-formula-pr.yml index d76b33e1a781..38cbc135625f 100644 --- a/.github/workflows/bump-formula-pr.yml +++ b/.github/workflows/bump-formula-pr.yml @@ -13,8 +13,6 @@ jobs: with: # Required, custom GitHub access token with the 'public_repo' and 'workflow' scopes token: ${{secrets.TOKEN}} - # Optional, will create tap repo fork in organization - org: ORG # Formula name, required formula: grafana-agent # Optional, will be determined automatically From d6146455e64c21f6e3530496b9f1c8545670526e Mon Sep 17 00:00:00 2001 From: Robert Lankford Date: Fri, 11 Feb 2022 12:51:41 -0600 Subject: [PATCH 3/6] Update .github/workflows/bump-formula-pr.yml --- .github/workflows/bump-formula-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump-formula-pr.yml b/.github/workflows/bump-formula-pr.yml index 38cbc135625f..0d5b0781b899 100644 --- a/.github/workflows/bump-formula-pr.yml +++ b/.github/workflows/bump-formula-pr.yml @@ -22,7 +22,7 @@ jobs: # Optional, if don't want to check for already open PRs force: false # true homebrew-grafana: - name: homebrew-core + name: homebrew-grafana runs-on: macos-latest steps: - name: Update Homebrew formula From f72e42e76922b8ade889ab15d761e4d45b00f72d Mon Sep 17 00:00:00 2001 From: Robert Lankford Date: Mon, 28 Feb 2022 15:19:54 -0600 Subject: [PATCH 4/6] Update .github/workflows/bump-formula-pr.yml --- .github/workflows/bump-formula-pr.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/bump-formula-pr.yml b/.github/workflows/bump-formula-pr.yml index 0d5b0781b899..69bca991bb03 100644 --- a/.github/workflows/bump-formula-pr.yml +++ b/.github/workflows/bump-formula-pr.yml @@ -1,5 +1,7 @@ name: bump-formula-pr on: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: push: tags: - 'v*' From f4fab5764907a6161b1c5262936cc5ccf7d4d791 Mon Sep 17 00:00:00 2001 From: Robert Lankford Date: Mon, 28 Feb 2022 15:19:59 -0600 Subject: [PATCH 5/6] Update .github/workflows/bump-formula-pr.yml --- .github/workflows/bump-formula-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump-formula-pr.yml b/.github/workflows/bump-formula-pr.yml index 69bca991bb03..103ba3bc2c52 100644 --- a/.github/workflows/bump-formula-pr.yml +++ b/.github/workflows/bump-formula-pr.yml @@ -14,7 +14,7 @@ jobs: uses: dawidd6/action-homebrew-bump-formula@v3 with: # Required, custom GitHub access token with the 'public_repo' and 'workflow' scopes - token: ${{secrets.TOKEN}} + token: ${{secrets.HOMEBREW_FORMULA_GH_TOKEN}} # Formula name, required formula: grafana-agent # Optional, will be determined automatically From 094fb6878f9cfcb41a73ceceda1625a7125a12bd Mon Sep 17 00:00:00 2001 From: Robert Lankford Date: Mon, 28 Feb 2022 15:20:04 -0600 Subject: [PATCH 6/6] Update .github/workflows/bump-formula-pr.yml --- .github/workflows/bump-formula-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump-formula-pr.yml b/.github/workflows/bump-formula-pr.yml index 103ba3bc2c52..b9dc9e697ddd 100644 --- a/.github/workflows/bump-formula-pr.yml +++ b/.github/workflows/bump-formula-pr.yml @@ -31,7 +31,7 @@ jobs: uses: dawidd6/action-homebrew-bump-formula@v3 with: # Required, custom GitHub access token with the 'public_repo' and 'workflow' scopes - token: ${{secrets.TOKEN}} + token: ${{secrets.HOMEBREW_FORMULA_GH_TOKEN}} # Optional, defaults to homebrew/core tap: grafana/grafana # Formula name, required