From 46f117c621cf88786e109e808e6b25b6c605f5b1 Mon Sep 17 00:00:00 2001 From: Leo Farias Date: Wed, 14 Feb 2024 11:51:39 -0500 Subject: [PATCH] Update deploy workflow --- .github/workflows/deploy_homebrew.yml | 2 +- .github/workflows/deploy_macos.yml | 1 - .github/workflows/release.yml | 3 ++- tool/grind.dart | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy_homebrew.yml b/.github/workflows/deploy_homebrew.yml index e1d2d7f6..d693b532 100644 --- a/.github/workflows/deploy_homebrew.yml +++ b/.github/workflows/deploy_homebrew.yml @@ -9,7 +9,7 @@ jobs: runs-on: macos-latest env: PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }} - GITHUB_BEARER_TOKEN: ${{ secrets.HOMEBREW_FVM_GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.HOMEBREW_FVM_GH_TOKEN }} steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/deploy_macos.yml b/.github/workflows/deploy_macos.yml index 8bdb40fd..29215100 100644 --- a/.github/workflows/deploy_macos.yml +++ b/.github/workflows/deploy_macos.yml @@ -10,7 +10,6 @@ jobs: env: PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_BEARER_TOKEN: ${{ secrets.HOMEBREW_FVM_GH_TOKEN }} steps: - name: Checkout diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42d938fd..ae779bd0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,7 +65,6 @@ jobs: needs: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_BEARER_TOKEN: ${{ secrets.HOMEBREW_FVM_GH_TOKEN }} steps: - name: Checkout @@ -82,6 +81,8 @@ jobs: - name: Deploy Homebrew run: dart run grinder pkg-homebrew-update + env: + GITHUB_TOKEN: ${{ secrets.HOMEBREW_FVM_GH_TOKEN }} diff --git a/tool/grind.dart b/tool/grind.dart index 2af707d0..c8b072b1 100644 --- a/tool/grind.dart +++ b/tool/grind.dart @@ -21,7 +21,7 @@ void main(List args) { pkg.githubUser.value = owner; pkg.githubRepo.value = 'leoafarias/fvm'; pkg.homebrewRepo.value = 'leoafarias/homebrew-fvm'; - pkg.githubBearerToken.value = Platform.environment['GITHUB_BEARER_TOKEN']; + pkg.githubBearerToken.value = Platform.environment['GITHUB_TOKEN']; pkg.homebrewCreateVersionedFormula.value = true; pkg.addAllTasks();