Skip to content

Commit

Permalink
head, not base
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Jul 29, 2022
1 parent 4ea526c commit f83cae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
- '**.ui'

env:
GITHUB_BASE_REPOSITORY: ${{ github.event.pull_request.base.repo.full_name }}
GITHUB_HEAD_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name }}

jobs:
Pyright:
Expand Down
3 changes: 1 addition & 2 deletions scripts/compile_resources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ Write-Host 'Generated code from .ui files'

$build_vars_path = "$PSScriptRoot/../src/gen/build_vars.py"
$BUILD_NUMBER = Get-Date -Format yyMMddHHmm
# $GITHUB_REPOSITORY = If ($Env:GITHUB_BASE_REPOSITORY) { $Env:GITHUB_BASE_REPOSITORY } Else { 'Toufool/Auto-Split' }
$GITHUB_REPOSITORY = $Env:GITHUB_BASE_REPOSITORY
$GITHUB_REPOSITORY = If ($Env:GITHUB_HEAD_REPOSITORY) { $Env:GITHUB_HEAD_REPOSITORY } Else { 'Toufool/Auto-Split' }
New-Item $build_vars_path -ItemType File -Force | Out-Null
Add-Content $build_vars_path "AUTOSPLIT_BUILD_NUMBER = `"$BUILD_NUMBER`""
Add-Content $build_vars_path "AUTOSPLIT_GITHUB_REPOSITORY = `"$GITHUB_REPOSITORY`""
Expand Down

0 comments on commit f83cae7

Please sign in to comment.