Skip to content

Commit 26e6d2c

Browse files
committed
Only run dumpsource2 and protos sync on main branch
1 parent 7a4fa65 commit 26e6d2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/gametracking.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)