Skip to content

Commit

Permalink
ci: set GITHUB_TOKEN to cause linting modifications to trigger CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Mar 16, 2024
1 parent be585f3 commit 3643516
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
token: ${{ secrets.RTX_GITHUB_BOT_TOKEN || secrets.GITHUB_TOKEN }}

# If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to
# improve performance
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
) &&
!contains(github.event.head_commit.message, 'skip fix')
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
token: ${{ secrets.RTX_GITHUB_BOT_TOKEN || secrets.GITHUB_TOKEN }}
commit-message: "[MegaLinter] Apply linters automatic fixes"
title: "[MegaLinter] Apply linters automatic fixes"
labels: bot
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.RTX_GITHUB_BOT_TOKEN || github.token }}
- uses: Swatinem/rust-cache@v2
with:
shared-key: unit
Expand Down
1 change: 1 addition & 0 deletions .idea/mise.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions test/fixtures/signal-test.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
let i = 3
let i = 3;

process.on('SIGINT', function () {
process.on("SIGINT", function () {
if (i > 0) {
console.log(`Got SIGINT. Press Control-D to exit. ${i} times left`)
i--
console.log(`Got SIGINT. Press Control-D to exit. ${i} times left`);
i--;
} else {
process.exit()
process.exit();
}
})
});

// wait for 60 seconds
setTimeout(function () {}, 60000)
console.log('Running. Press Control-C to test.')
setTimeout(function () {}, 60000);

Check notice on line 13 in test/fixtures/signal-test.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

test/fixtures/signal-test.js#L13

Restricted async operation "setTimeout"
console.log("Running. Press Control-C to test.");
Empty file modified tests/cli/data/configs/.config/mise/source.sh
100644 → 100755
Empty file.

0 comments on commit 3643516

Please sign in to comment.