2022-10-24 19:55:16 +02:00
|
|
|
name: Update Immich SDK
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches: ["main"]
|
|
|
|
|
2023-02-19 18:44:53 +02:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-10-24 19:55:16 +02:00
|
|
|
jobs:
|
|
|
|
update-sdk-repos:
|
|
|
|
runs-on: ubuntu-latest
|
2023-01-21 18:08:06 +02:00
|
|
|
if: ${{ !github.event.pull_request.head.repo.fork }}
|
2022-10-24 19:55:16 +02:00
|
|
|
steps:
|
2023-11-15 04:27:43 +02:00
|
|
|
- uses: actions/github-script@v7
|
2022-10-24 19:55:16 +02:00
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.GH_TOKEN }}
|
|
|
|
script: |
|
|
|
|
await github.rest.actions.createWorkflowDispatch({
|
|
|
|
owner: 'immich-app',
|
|
|
|
repo: 'immich-sdk-typescript-axios',
|
|
|
|
workflow_id: 'build.yml',
|
|
|
|
ref: 'main'
|
|
|
|
})
|