diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3e932c4..0067f55 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,9 +2,9 @@ name: Publish on: workflow_dispatch: - push: - branches: - - main + schedule: + # Run weekly on Monday at 01:00 UTC (1 hour after update.yml) + - cron: '0 1 * * 1' permissions: contents: read diff --git a/.github/workflows/update-packages.yml b/.github/workflows/update.yml similarity index 66% rename from .github/workflows/update-packages.yml rename to .github/workflows/update.yml index 83f4990..638c33b 100644 --- a/.github/workflows/update-packages.yml +++ b/.github/workflows/update.yml @@ -60,24 +60,3 @@ jobs: fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Create Release Pull Request - if: steps.check.outputs.has_updates == 'true' - uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3 - id: changesets - with: - commit: 'chore(release): match upstream terraform providers' - title: 'Update packages to match upstream terraform providers' - publish: pnpm release - commitMode: 'git-cli' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NX_KEY: ${{ secrets.NX_KEY }} - AWS_ENDPOINT_URL: ${{ secrets.AWS_ENDPOINT_URL }} - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - - name: Auto-merge release PR - if: steps.changesets.outputs.pullRequestNumber != '' - run: | - gh pr merge ${{ steps.changesets.outputs.pullRequestNumber }} --rebase --delete-branch - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}