Merge branch '5.5'
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Sep 2023 15:07:05 +0000 (17:07 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Sep 2023 15:07:05 +0000 (17:07 +0200)
1  2 
.github/workflows/codestyle.yml
.github/workflows/d-ts.yml
.github/workflows/php.yml

index 09747824867920af8d22751d6e0c40ccc69a5aa2,d3788d0a4ea542d7316674d39d9ee8eac121f43e..2cfdd1b7e488bf2c4fbdb90057d13ab457e7a398
@@@ -14,7 -14,9 +14,7 @@@ jobs
      name: PHP
      runs-on: ubuntu-latest
      steps:
-     - uses: actions/checkout@v3
+     - uses: actions/checkout@v4
 -    - name: phpcs
 -      uses: chekalsky/phpcs-action@e269c2f264f400adcda7c6b24c8550302350d495
      - name: Setup PHP with tools
        uses: shivammathur/setup-php@v2
        with:
index 3f6ac3aa830e1ded244cf068bf5adf5007d2a95c,0000000000000000000000000000000000000000..a2431ba18524f518ee9a7a31f24c0d21bd2514b3
mode 100644,000000..100644
--- /dev/null
@@@ -1,59 -1,0 +1,59 @@@
-     - uses: actions/checkout@v3
 +name: d.ts Exporter
 +
 +on:
 +  workflow_dispatch:
 +  schedule:
 +  - cron: '37 15 * * 4'
 +
 +jobs:
 +  export:
 +    name: "Export (${{ matrix.branch }})"
 +    runs-on: ubuntu-latest
 +    strategy:
 +      fail-fast: false
 +      matrix:
 +        branch:
 +        - 'master'
 +    steps:
-     - uses: actions/checkout@v3
++    - uses: actions/checkout@v4
 +      with:
 +        ref: ${{ matrix.branch }}
 +    - name: Determine commit
 +      id: determine-commit
 +      run: |
 +        echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
 +    - name: Set up node.js
 +      uses: actions/setup-node@v3
 +      with:
 +        node-version: "18"
 +        cache: "npm"
 +    - run: npm install
++    - uses: actions/checkout@v4
 +      with:
 +        repository: WoltLab/d.ts
 +        ssh-key: ${{ secrets.WOLTLAB_D_TS_DEPLOY_KEY }}
 +        path: d.ts
 +        ref: ${{ matrix.branch }}
 +    - run: npx tsc --declaration --emitDeclarationOnly --outdir ./d.ts/
 +    - name: Prepare git
 +      run: |
 +        git config --global user.name "WoltLab GmbH"
 +        git config --global user.email "woltlab@woltlab.com"
 +    - name: Push the update
 +      run: |
 +        set -x
 +        cd d.ts/
 +        git add .
 +
 +        if git diff --cached --quiet; then
 +          exit 0
 +        fi
 +
 +        git commit -m "Update ${{ github.repository }} definitions
 +
 +        Generated using:
 +
 +            npx tsc --declaration --emitDeclarationOnly --outdir ./d.ts/
 +
 +        from ${{ github.repository }}@${{ steps.determine-commit.outputs.sha }}"
 +        git push
Simple merge