|
7 | 7 | description: 'Steam VR Branch' |
8 | 8 | required: false |
9 | 9 | default: 'beta' |
10 | | - type: string |
11 | | - repository_dispatch: |
| 10 | + type: string |
12 | 11 |
|
13 | 12 | concurrency: |
14 | 13 | group: ${{ github.workflow }} |
15 | 14 | cancel-in-progress: true |
16 | 15 |
|
17 | 16 | jobs: |
18 | | - execute: |
19 | | - runs-on: ubuntu-latest |
20 | | - permissions: |
21 | | - contents: write |
22 | | - steps: |
23 | | - |
24 | | - - name: Checkout GameTracking |
25 | | - id: checkout-gametracking |
26 | | - uses: actions/checkout@v6 |
27 | | - with: |
28 | | - fetch-depth: 1 |
29 | | - repository: 'SteamTracking/GameTracking' |
30 | | - |
31 | | - - name: Grab cache |
32 | | - id: cache |
33 | | - uses: actions/cache@v5 |
34 | | - with: |
35 | | - path: | |
36 | | - ${{ github.workspace }}/tools/* |
37 | | - !${{ github.workspace }}/tools/build.sh |
38 | | - key: ${{ runner.os }}-tools-${{ steps.checkout-gametracking.outputs.commit }} |
39 | | - |
40 | | - - name: Checkout GameTrackingSteamVR |
41 | | - uses: actions/checkout@v6 |
42 | | - with: |
43 | | - fetch-depth: 1 |
44 | | - path: steamvr |
45 | | - |
46 | | - - name: Setup Go |
47 | | - if: steps.cache.outputs.cache-hit != 'true' |
48 | | - uses: actions/setup-go@v6 |
49 | | - with: |
50 | | - go-version: 'stable' |
51 | | - |
52 | | - - name: Setup .NET |
53 | | - if: steps.cache.outputs.cache-hit != 'true' |
54 | | - uses: actions/setup-dotnet@v5 |
55 | | - with: |
56 | | - dotnet-version: '10.x' |
57 | | - |
58 | | - - name: Build tools |
59 | | - if: steps.cache.outputs.cache-hit != 'true' |
60 | | - run: ./tools/build.sh |
61 | | - |
62 | | - - name: Configure git user |
63 | | - run: | |
64 | | - git config --global user.name "github-actions[bot]" |
65 | | - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" |
66 | | -
|
67 | | - - name: Setup Node.js |
68 | | - uses: actions/setup-node@v6 |
69 | | - with: |
70 | | - node-version: '22' |
71 | | - cache: 'npm' |
72 | | - cache-dependency-path: steamvr/package-lock.json |
73 | | - |
74 | | - - name: Install Node dependencies |
75 | | - working-directory: steamvr |
76 | | - run: npm ci |
77 | | - |
78 | | - - name: Execute |
79 | | - working-directory: steamvr |
80 | | - run: ./update.sh |
81 | | - env: |
82 | | - STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} |
83 | | - STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} |
84 | | - STEAM_BRANCH: ${{ github.event.inputs.branch }} |
| 17 | + process: |
| 18 | + uses: steamtracking/gametracking/.github/workflows/gametracking.yml@reusable-workflow |
| 19 | + secrets: inherit |
| 20 | + with: |
| 21 | + folder: steamvr |
| 22 | + branch: ${{ github.event.inputs.branch }} |
0 commit comments