Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

chore: adding dummy commit to refresh scheduler #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/dummy_commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Dummy commit

on:
schedule:
# Triggers the workflow every 15 days at 5:00 UTC:
- cron: "0 5 15 * *"
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest
env:
CI_COMMIT_MESSAGE: Continuous Integration Build trigger
CI_COMMIT_AUTHOR: Continuous Integration
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.ROBOT_PAT_TRIGGER_E2E_WORKFLOWS }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need a PAT here. If default permissions of the default GITHUB_TOKEN aren't enough, you can set contents to write and it should be enough.
https://docs.github.com/en/actions/security-guides/automatic-token-authentication

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point of adding this PAT was to allow the commit to trigger workflow (which isn't the case when you checkout with the default one) but maybe we don't need this job to trigger workflow. I don't know if it gonna work as there is no documentation on that :x

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok interesting. But indeed we don't need to trigger a workflow here, we just need to update history so that the cronjob continues working.

- name: Push commit to main
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "[email protected]"
git commit --allow-empty -m $CI_COMMIT_MESSAGE
git push