-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
200 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
tab_width = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
indent_style = space | ||
trim_trailing_whitespace = false | ||
|
||
[*.{json,yml,yaml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[LICENSE.txt] | ||
indent_style = space | ||
indent_size = 0 | ||
|
||
[Jamfile] | ||
indent_style = tabs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: ci - auto rerun failed jobs | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
run_id: | ||
description: "The run id of the workflow to rerun" | ||
required: true | ||
attempts: | ||
description: "The number of attempts to rerun the workflow" | ||
required: true | ||
retries: | ||
description: "The number of retries to rerun the workflow" | ||
required: true | ||
github_repo: | ||
description: "The repository to rerun the workflow" | ||
required: false | ||
distinct_id: | ||
description: "The distinct id of the workflow to rerun" | ||
required: false | ||
|
||
run-name: ci auto rerun failed jobs - attempt ${{ inputs.attempts }} | ||
|
||
jobs: | ||
gh-cli-rerun: | ||
name: rerun - attempt ${{ inputs.attempts }} | ||
permissions: | ||
actions: write | ||
runs-on: ubuntu-24.04-arm | ||
env: | ||
GH_TOKEN: "${{ secrets.AUTO_RERUN || github.token }}" | ||
steps: | ||
- name: Host - Checkout action ${{ inputs.distinct_id }} | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- uses: userdocs/gh-cli-workflow-reruns/actions/auto-rerun-failed@main | ||
with: | ||
run_id: ${{ inputs.run_id }} | ||
attempts: ${{ inputs.attempts }} | ||
retries: ${{ inputs.retries }} | ||
github_repo: ${{ inputs.github_repo || github.repository }} | ||
distinct_id: ${{ inputs.distinct_id || github.run_id }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: ci - checks | ||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
sh-checker: | ||
runs-on: ubuntu-24.04-arm | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Run the sh-checker | ||
uses: luizm/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
SHELLCHECK_OPTS: -e SC2034,SC1091 # It is possible to exclude some shellcheck warnings. | ||
SHFMT_OPTS: -ci -sr -i 0 # It is possible to pass arguments to shftm | ||
with: | ||
sh_checker_comment: true | ||
sh_checker_exclude: "" | ||
|
||
zizmor-checker: | ||
runs-on: ubuntu-24.04-arm | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Check GitHub Action workflows | ||
shell: bash {0} | ||
run: | | ||
pip install zizmor | ||
zizmor="$(zizmor . --gh-token "${{ github.token }}")" | ||
exit_code="$?" | ||
printf '%s\n' "$zizmor" | ||
printf '%b\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
printf '%s\n' "$zizmor" >> $GITHUB_STEP_SUMMARY | ||
printf '%b' "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
exit "$exit_code" | ||
editorconfig-checker: | ||
runs-on: ubuntu-24.04-arm | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: editorconfig-checker | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
curl -Lo- "https://github.com/editorconfig-checker/editorconfig-checker/releases/latest/download/ec-linux-amd64.tar.gz" | tar xzf - --strip-components=1 | ||
printf '%b\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
./ec-linux-amd64 --exclude '^(docs/.*|patches/.*)$' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" >> $GITHUB_STEP_SUMMARY | ||
exit_code=("${PIPESTATUS[0]}") | ||
printf '%b' "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
# exit "${exit_code}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.