Skip to content

Commit 475ca4e

Browse files
committed
🔧 fix: ci error
1 parent 2ce99f3 commit 475ca4e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/update.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- package.json
99

1010
permissions:
11-
contents: read
11+
contents: write
1212
pull-requests: write
1313

1414
jobs:
@@ -18,8 +18,10 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
with:
21+
ref: ${{ github.head_ref }}
2122
persist-credentials: false
2223
fetch-depth: 0
24+
token: ${{ secrets.PAT_TOKEN }}
2325

2426
- name: Setup Bun
2527
uses: oven-sh/setup-bun@v2
@@ -40,7 +42,7 @@ jobs:
4042
- name: Push changes
4143
uses: ad-m/github-push-action@master
4244
with:
43-
github_token: ${{ secrets.GITHUB_TOKEN }}
45+
github_token: ${{ secrets.PAT_TOKEN }}
4446
branch: ${{ github.head_ref }}
4547

4648
- name: Enable auto-merge

src/background.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ async function checkForUpdates() {
1212
const response = await GET('/version.txt')
1313
const latestVersion = await response.text()
1414
const { version: currentVersion } = await browser.storage.local.get('version')
15+
console.log(currentVersion, latestVersion)
1516

1617
if (latestVersion !== currentVersion) {
1718
const [css, materialIcons, languageMap] = await Promise.all([

0 commit comments

Comments
 (0)