From a02b2e92ab4498daba3baf643f1e9bd6202a6b3f Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Wed, 11 Nov 2020 10:47:55 -0800 Subject: [PATCH] Update TS version tags weekly (#163) * Update TS version tags weekly Probably not quite right, but this should be a good start. * test with pull_request instead of pr * just one on * first try at cloning DT * try shallow clone * try a new token * dummy edit to try github-publish-access-token * dummy edit to try github-publish-access-token * switch to scheduled run --- .github/workflows/update-ts-version-tags.yml | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/update-ts-version-tags.yml diff --git a/.github/workflows/update-ts-version-tags.yml b/.github/workflows/update-ts-version-tags.yml new file mode 100644 index 00000000..0db7d806 --- /dev/null +++ b/.github/workflows/update-ts-version-tags.yml @@ -0,0 +1,27 @@ +name: Update ts* tags for ATA + +# For testing +# on: pull_request + +# For production +on: + schedule: + # https://crontab.guru/#5_8_*_*_1 + - cron: "5 8 * * 1" + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + - name: retag + run: | + git clone --depth 1 https://github.com/DefinitelyTyped/DefinitelyTyped ../DefinitelyTyped + yarn + yarn build + node packages/retag/dist/index.js + env: + NPM_TOKEN: ${{ secrets.NPM_RETAG_TOKEN }} + GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }} + \ No newline at end of file