Skip to content

Commit

Permalink
Revert "ci(release): use github app token"
Browse files Browse the repository at this point in the history
  • Loading branch information
zeshuaro authored Jan 18, 2024
1 parent 2e2068a commit 00f7de3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
uses: actions/cache@v3
with:
path: |
${{ env.PUB_CACHE }}
**/.dart_tool
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
Expand Down Expand Up @@ -159,6 +160,7 @@ jobs:
uses: actions/cache@v3
with:
path: |
${{ env.PUB_CACHE }}
**/.dart_tool
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
Expand Down Expand Up @@ -202,13 +204,6 @@ jobs:
build-output: bundle

steps:
- name: Create GitHub App token 🔑
id: create-app-token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}

- name: Checkout 🛎️
uses: actions/checkout@v4
with:
Expand All @@ -231,6 +226,7 @@ jobs:
uses: actions/cache@v3
with:
path: |
${{ env.PUB_CACHE }}
**/.dart_tool
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
Expand Down Expand Up @@ -259,7 +255,7 @@ jobs:
shell: bash
run: npx semantic-release --extends ./build.release.config.js
env:
GITHUB_TOKEN: ${{ steps.create-app-token.outputs.token }}
GITHUB_TOKEN: ${{ secrets.PAT }}
APP_TYPE: ${{ matrix.type }}
BUILD_PATH: ${{ matrix.build-path }}
BUILD_OUTPUT: ${{ matrix.build-output }}
Expand All @@ -280,13 +276,6 @@ jobs:
needs: [build]

steps:
- name: Create GitHub App token 🔑
id: create-app-token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}

- name: Checkout 🛎️
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -316,4 +305,4 @@ jobs:
- name: Release 🚀
run: npx semantic-release --extends ./publish.release.config.js
env:
GITHUB_TOKEN: ${{ steps.create-app-token.outputs.token }}
GITHUB_TOKEN: ${{ secrets.PAT }}
10 changes: 2 additions & 8 deletions .github/workflows/post-dependency-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Create GitHub App token 🔑
id: create-app-token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}

- name: Checkout 🛎️
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
token: ${{ steps.create-app-token.outputs.token }}
token: ${{ secrets.PAT }}

- name: Get project Flutter version 🏷️
id: fvm-config
Expand All @@ -43,6 +36,7 @@ jobs:
uses: actions/cache@v3
with:
path: |
${{ env.PUB_CACHE }}
**/.dart_tool
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
Expand Down

0 comments on commit 00f7de3

Please sign in to comment.