File tree Expand file tree Collapse file tree 1 file changed +29
-29
lines changed Expand file tree Collapse file tree 1 file changed +29
-29
lines changed Original file line number Diff line number Diff line change 2020 golang_version :
2121 required : true
2222 type : string
23- pull_request :
24- types :
25- - opened
26- - synchronize
27- branches :
28- - main
29- - release-*
23+ # pull_request:
24+ # types:
25+ # - opened
26+ # - synchronize
27+ # branches:
28+ # - main
29+ # - release-*
3030
3131
3232jobs :
3333 # TODO: Is there a way that we can only invoke this if this is a PR?
34- optionalVariables :
35- if : ${{ github.event_name == 'pull_request' }}
36- uses : ./.github/workflows/variables.yaml
34+ # optionalVariables:
35+ # if: ${{ github.event_name == 'pull_request' }}
36+ # uses: ./.github/workflows/variables.yaml
3737
38- variables :
39- runs-on : ubuntu-latest
40- needs :
41- - optionalVariables
42- if : always()
43- outputs :
44- golang_version : ${{ steps.golang_output.outputs.golang_version }}
45- steps :
46- - name : Check out code
47- uses : actions/checkout@v4
48- - id : golang_version
49- run : |
50- if [[ "${{ github.event_name }}" == "pull_request" ]]; then
51- GOLANG_VERSION="${{ needs.optionalVariables.output.golang_version }}"
52- else
53- GOLANG_VERSION="${{ inputs.golang_version}}"
54- fi
55- echo "golang_version=${GOLANG_VERSION##GOLANG_VERSION ?= }" >> $GITHUB_OUTPUT
38+ # variables:
39+ # runs-on: ubuntu-latest
40+ # needs:
41+ # - optionalVariables
42+ # if: always()
43+ # outputs:
44+ # golang_version: ${{ steps.golang_output.outputs.golang_version }}
45+ # steps:
46+ # - name: Check out code
47+ # uses: actions/checkout@v4
48+ # - id: golang_version
49+ # run: |
50+ # if [[ "${{ github.event_name }}" == "pull_request" ]]; then
51+ # GOLANG_VERSION="${{ needs.optionalVariables.output.golang_version }}"
52+ # else
53+ # GOLANG_VERSION="${{ inputs.golang_version}}"
54+ # fi
55+ # echo "golang_version=${GOLANG_VERSION##GOLANG_VERSION ?= }" >> $GITHUB_OUTPUT
5656
5757 analyze :
5858 needs :
7171 - name : Install Go
7272 uses : actions/setup-go@v5
7373 with :
74- go-version : ${{ needs.variables.outputs .golang_version }}
74+ go-version : ${{ inputs .golang_version }}
7575
7676 - name : Initialize CodeQL
7777 uses : github/codeql-action/init@v3
You can’t perform that action at this time.
0 commit comments