-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use renovate, update CI and precommit and automate docs
- Loading branch information
Showing
10 changed files
with
201 additions
and
66 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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,25 @@ | ||
name: Update dependencies | ||
concurrency: update-dependencies | ||
|
||
on: | ||
schedule: | ||
# Every day at midnight | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
issue_comment: | ||
types: | ||
- edited | ||
pull_request: | ||
types: | ||
- edited | ||
|
||
jobs: | ||
update-dependencies: | ||
runs-on: ubuntu-latest | ||
name: Update dependencies | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: open-turo/action-renovate@v1 | ||
with: | ||
github-token: ${{ secrets.OPEN_TURO_GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,26 +1,34 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 # Use the ref you want to point at | ||
rev: v4.6.0 # Use the ref you want to point at | ||
hooks: | ||
- id: check-json | ||
- id: check-yaml | ||
- id: pretty-format-json | ||
args: | ||
- --autofix | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v9.6.0 | ||
hooks: | ||
- id: eslint | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.5.1 | ||
rev: v3.1.0 | ||
hooks: | ||
- id: prettier | ||
stages: [commit] | ||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook | ||
rev: v8.0.0 | ||
rev: v9.16.0 | ||
hooks: | ||
- id: commitlint | ||
stages: [commit-msg] | ||
additional_dependencies: ["@open-turo/commitlint-config-conventional"] | ||
- repo: https://github.com/rhysd/actionlint | ||
rev: v1.6.8 | ||
rev: v1.7.1 | ||
hooks: | ||
- id: actionlint | ||
- repo: local | ||
hooks: | ||
- id: update-action-readme | ||
name: update-action-readme | ||
entry: ./script/update-action-readme | ||
language: script | ||
files: '.*action\.yaml$' |
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 |
---|---|---|
@@ -1,15 +1,3 @@ | ||
{ | ||
"branches": [ | ||
"main", | ||
{ | ||
"channel": "next", | ||
"name": "(f|b|c)/*", | ||
"prerelease": "beta-<%= (/^\\w+-\\d+/.exec(name.substr(2)) || [])[0] %>" | ||
} | ||
], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/github" | ||
] | ||
"extends": "@open-turo/semantic-release-config" | ||
} |
Empty file.
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
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,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
for i in $*; do | ||
# ignore if the file does not end with /action.yaml | ||
if [[ "$i" != *"/action.yaml" ]]; then | ||
echo "skipping: ${i}" | ||
continue | ||
fi | ||
|
||
echo "npx action-docs --no-banner -s "${i}"" | ||
cd $(dirname "$i") | ||
npx action-docs@2 --no-banner -s action.yaml -u README.md || echo "action-docs failed for $i" | ||
cd - | ||
done |
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