diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml new file mode 100644 index 0000000..fb87877 --- /dev/null +++ b/.github/workflows/keepalive.yml @@ -0,0 +1,17 @@ +name: Keepalive + +on: + # The 4th of every month at 10:50am UTC + schedule: + - cron: '50 10 4 * *' + workflow_dispatch: + +jobs: + keepalive: + name: Keepalive + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') + runs-on: ubuntu-latest + steps: + - name: Keepalive + uses: silverstripe/gha-keepalive@v1 diff --git a/.github/workflows/translation-issue.yml b/.github/workflows/translation-issue.yml new file mode 100644 index 0000000..f1ac9ee --- /dev/null +++ b/.github/workflows/translation-issue.yml @@ -0,0 +1,41 @@ +name: Translation issue + +on: + # At 7:00am UTC on the 1st of February, May, August, and November + schedule: + - cron: '0 7 1 2,5,8,11 *' + workflow_dispatch: + +jobs: + translation-issue: + name: Translation issue + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') + runs-on: ubuntu-latest + steps: + - name: Translation issue + uses: silverstripe/gha-issue@v1 + with: + title: Run translations + description: | + This is an automatically created issue used to run translations every 3 months.\n + \n + It was created by the `translation-issue.yml` workflow in the `silverstripe/.github` repository.\n + \n + ### Triage instructions (Silverstripe Ltd CMS Squad)\n + 1. Put on the following labels:\n + - `type/enhancement`\n + - `impact/low`\n + - `affects/v4`\n + - `affects/v5`\n + 2. Move this issue to the "Ready" column on our internal zenhub board\n + \n + ### Implementation instructions:\n + 1. Create an install of kitchen-sink using the oldest supported minor branch e.g. `2.13`\n + 2. Also install [silverstripe/tx-translator](https://github.com/silverstripe/silverstripe-tx-translator/)\n + 3. Follow the instructions in the `tx-translator` README.md and do a TX_PULL=1 TX_PUSH=0 run.\n + 4. This will create lots of pull-requests. Paste links to these pull request on this issue.\n + 5. Once the pull-requests have been merged, merge them up all the way to the next-minor branch e.g. `5`\n + 6. Create new patch releases for all supported branches on all repositories that have new translations.\n + 7. Create a new install of kitchen-sink using the next-minor branch e.g. `5` and also install `tx-translator` again.\n + 8. Do another `tx-translator` run this time use TX_PULL=0 TX_PUSH=1.\n