From 2998feeaf6352e76a514125cf28519c7ebead47c Mon Sep 17 00:00:00 2001 From: Adriana Jara Date: Tue, 23 Jul 2024 19:28:48 -0700 Subject: [PATCH 1/3] Adding weekly run to update draft features by spec --- .github/update_draft_features_weekly.yml | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/update_draft_features_weekly.yml diff --git a/.github/update_draft_features_weekly.yml b/.github/update_draft_features_weekly.yml new file mode 100644 index 00000000000..2e9b934d86a --- /dev/null +++ b/.github/update_draft_features_weekly.yml @@ -0,0 +1,32 @@ +name: Update Draft Features + +on: + schedule: +# Runs at midnight on Mondays 05:30 UTC + - cron: '30 5 * * 1' + +jobs: + update-drafts: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: .node-version + cache: npm + - run: npm ci + - run: npm run update-drafts + - name: Commit changes + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add -A + git commit -m "Update draft features weekly" || echo "No changes to commit" + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + commit-message: Update draft features weekly + title: "[GitHub Actions] Update draft features weekly" + body: "This is an auto-generated PR with draft features by spec updates." + branch: update-draft-features-${{ github.run_number }} + delete-branch: true From 374edea7ac14a10159f06e498bbdf55d0f9fb5fb Mon Sep 17 00:00:00 2001 From: Adriana Jara Date: Wed, 24 Jul 2024 13:16:15 -0700 Subject: [PATCH 2/3] Moving action to workflow folder --- .github/{ => workflows}/update_draft_features_weekly.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/update_draft_features_weekly.yml (100%) diff --git a/.github/update_draft_features_weekly.yml b/.github/workflows/update_draft_features_weekly.yml similarity index 100% rename from .github/update_draft_features_weekly.yml rename to .github/workflows/update_draft_features_weekly.yml From 37ee483cb42e50fdab24d68ebfaf274b4640d2ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Fri, 26 Jul 2024 22:15:03 +0200 Subject: [PATCH 3/3] Update update_draft_features_weekly.yml --- .github/workflows/update_draft_features_weekly.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_draft_features_weekly.yml b/.github/workflows/update_draft_features_weekly.yml index 2e9b934d86a..29b7183df52 100644 --- a/.github/workflows/update_draft_features_weekly.yml +++ b/.github/workflows/update_draft_features_weekly.yml @@ -1,9 +1,10 @@ name: Update Draft Features on: + # Runs at midnight on Mondays 05:30 UTC, or manually triggered schedule: -# Runs at midnight on Mondays 05:30 UTC - cron: '30 5 * * 1' + workflow_dispatch: jobs: update-drafts: