Skip to content

Commit c4886f7

Browse files
Fix for what branch to trigger from
1 parent 8ac1d2d commit c4886f7

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/Auto-Release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Auto-Release
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches:
66
- main
77
types:

.github/workflows/Linter.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Linter
22

33
on:
4-
pull_request:
4+
pull_request_target:
5+
branches:
6+
- main
57

68
jobs:
79
Lint:

action.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ runs:
2828
GITHUB_CONTEXT: ${{ toJson(github) }}
2929
JOB_CONTEXT: ${{ toJson(job) }}
3030
RUNNER_CONTEXT: ${{ toJson(runner) }}
31+
AutoPatching: ${{ inputs.AutoPatching }}
32+
IncrementalPrerelease: ${{ inputs.IncrementalPrerelease }}
33+
VersionPrefix: ${{ inputs.VersionPrefix }}
3134
run: |
3235
# Auto-Release
3336
Write-Host "::group::Utilities"
@@ -59,9 +62,9 @@ runs:
5962
Write-Host $env:RUNNER_CONTEXT
6063
Write-Host '::endgroup::'
6164
62-
$autoPatching = '${{ inputs.AutoPatching }}' -eq 'true'
63-
$incrementalPrerelease = '${{ inputs.IncrementalPrerelease }}' -eq 'true'
64-
$versionPrefix = '${{ inputs.VersionPrefix }}'
65+
$autoPatching = $env:AutoPatching -eq 'true'
66+
$incrementalPrerelease = $env:IncrementalPrerelease -eq 'true'
67+
$versionPrefix = $env:VersionPrefix
6568
Write-Host "-------------------------------------------------"
6669
Write-Host "Auto patching enabled: [$autoPatching]"
6770
Write-Host "Incremental prerelease enabled: [$autoPatching]"

0 commit comments

Comments
 (0)