-
-
Notifications
You must be signed in to change notification settings - Fork 1
Revert: Annuler les changements workflow CodeRabbit #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,8 +10,6 @@ on: | |||||
|
|
||||||
| permissions: | ||||||
| contents: write | ||||||
| pull-requests: write | ||||||
| issues: write | ||||||
|
|
||||||
| jobs: | ||||||
| aggregate-and-post: | ||||||
|
|
@@ -20,9 +18,6 @@ jobs: | |||||
| steps: | ||||||
| - name: Check out repository | ||||||
| uses: actions/checkout@v3 | ||||||
| with: | ||||||
| token: ${{ secrets.GITHUB_TOKEN }} | ||||||
| persist-credentials: true | ||||||
|
|
||||||
| - name: Set up Node.js | ||||||
| uses: actions/setup-node@v4 | ||||||
|
|
@@ -48,16 +43,15 @@ jobs: | |||||
| - name: Commit and push changes | ||||||
| env: | ||||||
| GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} | ||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
| run: | | ||||||
| git config --global user.name 'github-actions[bot]' | ||||||
| git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | ||||||
| git config --global user.name 'ThePhoenixAgency' | ||||||
| git config --global user.email "${GIT_AUTHOR_EMAIL}" | ||||||
| git add . | ||||||
|
|
||||||
| if ! git diff --cached --exit-code; then | ||||||
| UTC_DATE=$(date -u +'%a %b %d %H:%M:%S UTC %Y') | ||||||
| git commit -m "Updated AI-Pulse: $UTC_DATE [skip ci]" | ||||||
| git push origin main | ||||||
| git commit -m "Updated AI-Pulse: $UTC_DATE" | ||||||
|
||||||
| git commit -m "Updated AI-Pulse: $UTC_DATE" | |
| git commit -m "Updated AI-Pulse: $UTC_DATE [skip ci]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restore CI skip to prevent recursive workflow runs
Because this workflow triggers on push to main, removing the [skip ci] marker from the commit message means the job’s own git push will immediately retrigger itself. src/aggregator.js always rewrites the README with a fresh Last Update timestamp, so every run creates a new commit and the cycle repeats, potentially creating an endless cascade of runs and commits. This only happens when the workflow is triggered by a push (including the push it makes itself), but that is the default here.
Useful? React with 👍 / 👎.
Copilot
AI
Jan 15, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The git push command without explicit branch specification may fail or push to an unexpected branch. When the workflow runs on a schedule or via workflow_dispatch, it may be in a detached HEAD state. Consider explicitly specifying the branch and remote as 'git push origin main' to ensure the changes are pushed to the correct branch consistently.
| git push | |
| git push origin main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without explicitly providing a token to the checkout action or persisting credentials, the subsequent git push may fail with authentication errors. The default GITHUB_TOKEN provided to workflows may not be automatically available for git operations. Consider either adding 'token: ${{ secrets.GITHUB_TOKEN }}' to the checkout action or ensuring that authentication is properly configured for the git push operation.