10 name: "Export (${{ matrix.branch }})"
11 runs-on: ubuntu-latest
18 - uses: actions/checkout@v3
20 ref: ${{ matrix.branch }}
21 - name: Determine commit
24 echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
25 - name: Set up node.js
26 uses: actions/setup-node@v3
31 - uses: actions/checkout@v3
33 repository: WoltLab/d.ts
34 ssh-key: ${{ secrets.WOLTLAB_D_TS_DEPLOY_KEY }}
36 ref: ${{ matrix.branch }}
37 - run: npx tsc --declaration --emitDeclarationOnly --outdir ./d.ts/
40 git config --global user.name "WoltLab GmbH"
41 git config --global user.email "woltlab@woltlab.com"
42 - name: Push the update
48 if git diff --cached --quiet; then
52 git commit -m "Update ${{ github.repository }} definitions
56 npx tsc --declaration --emitDeclarationOnly --outdir ./d.ts/
58 from ${{ github.repository }}@${{ steps.determine-commit.outputs.sha }}"