diff --git a/.github/workflows/publish-registry.yml b/.github/workflows/publish-registry.yml index e0a8a17fe3..688f325359 100644 --- a/.github/workflows/publish-registry.yml +++ b/.github/workflows/publish-registry.yml @@ -1,8 +1,7 @@ name: Publish registry +#description: Publish the types-registry package to npm (a list of all @types packages in the DT repo). on: - schedule: - # https://crontab.guru/#0_0_*_*_0 - - cron: 0 0 * * 0 + workflow_call: workflow_dispatch: jobs: publish-registry: diff --git a/.github/workflows/update-ts-version-tags.yml b/.github/workflows/update-ts-version-tags.yml index 220c96e542..21f04093b1 100644 --- a/.github/workflows/update-ts-version-tags.yml +++ b/.github/workflows/update-ts-version-tags.yml @@ -5,15 +5,13 @@ name: Update ts* tags for ATA # For production on: + workflow_call: workflow_dispatch: inputs: checkout: description: ref to deploy required: true default: master - schedule: - # https://crontab.guru/#5_8_*_*_1 - - cron: "5 8 * * 1" jobs: publish: diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml new file mode 100644 index 0000000000..f2b639f31e --- /dev/null +++ b/.github/workflows/weekly.yml @@ -0,0 +1,13 @@ +name: Weekly +#description: Update npm tags, then publish the types-registry package. +on: + schedule: + # https://crontab.guru/#0_0_*_*_0 + - cron: 0 0 * * 0 +jobs: + publish-registry: + needs: retag + uses: ./.github/workflows/publish-registry.yml + retag: + if: github.repository == 'microsoft/DefinitelyTyped-tools' + uses: ./.github/workflows/update-ts-version-tags.yml