File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ jobs:
160160 GH_TOKEN : ${{ github.token }}
161161
162162 - name : Checkout DumpSource2 JSON Repo
163- if : ${{ inputs.dumpsource2-schema-json != '' }}
163+ if : ${{ inputs.dumpsource2-schema-json != '' && github.ref_name == github.event.repository.default_branch }}
164164 uses : actions/checkout@v6
165165 with :
166166 fetch-depth : 1
@@ -169,7 +169,7 @@ jobs:
169169 token : ${{ secrets.DUMPSOURCE2_EXPLORER_TOKEN }}
170170
171171 - name : Push DumpSource2 JSON
172- if : ${{ inputs.dumpsource2-schema-json != '' }}
172+ if : ${{ inputs.dumpsource2-schema-json != '' && github.ref_name == github.event.repository.default_branch }}
173173 working-directory : ${{ github.workspace }}/dumps2_json/schemas
174174 shell : bash
175175 run : |
@@ -179,7 +179,7 @@ jobs:
179179 "https://github.com/${{ github.repository }}/commit/${{ steps.set-status.outputs.sha }}"
180180
181181 - name : Dispatch sync to ValveProtobufs
182- if : ${{ env.GH_TOKEN != '' }}
182+ if : ${{ env.GH_TOKEN != '' && github.ref_name == github.event.repository.default_branch }}
183183 run : gh api repos/SteamTracking/Protobufs/dispatches -f event_type=sync
184184 env :
185185 GH_TOKEN : ${{ secrets.DISPATCH_TOKEN }}
You can’t perform that action at this time.
0 commit comments