2022-10-24 17:55:16 +00:00
|
|
|
name: Update Immich SDK
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches: ["main"]
|
|
|
|
|
2023-02-19 16:44:53 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-10-24 17:55:16 +00:00
|
|
|
jobs:
|
|
|
|
update-sdk-repos:
|
|
|
|
runs-on: ubuntu-latest
|
2023-01-21 16:08:06 +00:00
|
|
|
if: ${{ !github.event.pull_request.head.repo.fork }}
|
2022-10-24 17:55:16 +00:00
|
|
|
steps:
|
2023-11-15 02:27:43 +00:00
|
|
|
- uses: actions/github-script@v7
|
2022-10-24 17:55:16 +00: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'
|
|
|
|
})
|