diff --git a/.github/workflows/pull-ocis-icons.yml b/.github/workflows/pull-ocis-icons.yml index e7395fcd7..e0c96e4a7 100644 --- a/.github/workflows/pull-ocis-icons.yml +++ b/.github/workflows/pull-ocis-icons.yml @@ -2,7 +2,9 @@ name: "Pull icons from ocis/web" on: workflow_dispatch: pull_request: - branches: ["release/*"] + branches: + - "release/*" + - "chore/*" permissions: contents: write @@ -11,9 +13,16 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 (previously v4) + - name: Generate GitHub App token + id: app-token + uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1.11.6 with: - ssh-key: ${{ secrets.DEPLOYMENT_SSH_KEY }} + app-id: ${{ secrets.TRANSLATION_APP_ID }} + private-key: ${{ secrets.TRANSLATION_APP_PRIVATE_KEY }} + + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + token: ${{ steps.app-token.outputs.token }} - name: Build MakeTVG run: | @@ -38,8 +47,13 @@ jobs: --icon-map img/tvg-icons/icon-map.json \ --output img/tvg-icons - - uses: GuillaumeFalourd/git-commit-push@205c043bca2f932f7a48a28a8d619ba30eb84baf # v1.3 + - uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 with: - email: devops@owncloud.com - name: ownClouders commit_message: "[icons] updated icons from ocis and ocis web" + +# - uses: GuillaumeFalourd/git-commit-push@205c043bca2f932f7a48a28a8d619ba30eb84baf # v1.3 +# with: +# access_token: ${{ steps.app-token.outputs.token }} +# email: devops@owncloud.com +# name: ownClouders +# commit_message: "[icons] updated icons from ocis and ocis web"