2 Commits

Author SHA1 Message Date
Han Qiao
6439e03aa2 fix: use ghcr mirror by default (#113) 2023-01-04 13:33:47 +08:00
Qiao Han
63ceca492b chore: remove GH_TOKEN from ci 2023-01-04 12:17:50 +08:00
5 changed files with 7 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ on:
branches:
- main
tags:
- 'v*'
- 'v[0-9]+.[0-9]+.[0-9]+'
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 1,9 * * *'
@@ -13,9 +13,6 @@ defaults:
run:
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
e2e: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest

View File

@@ -9,9 +9,6 @@ defaults:
run:
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest

2
dist/index.js generated vendored
View File

@@ -54,6 +54,8 @@ function run() {
const pathToCLI = yield tc.extractTar(pathToTarball);
// Expose the tool by adding it to the PATH
core.addPath(pathToCLI);
// Use GHCR mirror by default
core.exportVariable('SUPABASE_INTERNAL_IMAGE_REGISTRY', 'ghcr.io');
}
catch (error) {
if (error instanceof Error)

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -16,6 +16,9 @@ async function run(): Promise<void> {
// Expose the tool by adding it to the PATH
core.addPath(pathToCLI)
// Use GHCR mirror by default
core.exportVariable('SUPABASE_INTERNAL_IMAGE_REGISTRY', 'ghcr.io')
} catch (error) {
if (error instanceof Error) core.setFailed(error.message)
}