Skip to content

Commit

Permalink
new approach, might be better?
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Jul 24, 2023
1 parent a1ea06d commit 74bec72
Show file tree
Hide file tree
Showing 5 changed files with 1,458 additions and 128 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/format_rst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Check out code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Run RST Autoformatter
uses: livxy/rst-autoformatter-action@main
with:
rstfmt-args: ''
commit: 'true'
github-username: 'github-actions'
commit-message: 'Automated RST formatting'
files: '**/*.rst'

14 changes: 9 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,26 @@ branding:
icon: file-text
color: white
inputs:
rstfmt-args:
description: 'Additional arguments to pass to rstfmt.'
required: false
default: ''
files:
description: 'Pattern to match the files to be formatted.'
description: 'Pattern to match the RST files to be formatted.'
required: false
default: '**/*.rst'
commit:
description: 'Whether or not you want the action to push to your repo with the formatting.'
required: false
default: 'true'
github-username:
description: 'Username for the github action to commit with.'
description: 'Username for the GitHub action to commit with.'
required: false
default: 'github-actions'
commit-message:
description: 'Message for formatter commit.'
description: 'Message for the formatter commit.'
required: false
default: 'Format Rst'
default: 'Format RST files'
runs:
using: node16
main: 'build/index.js'
main: 'build/index.js'
24 changes: 24 additions & 0 deletions build/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ The above copyright notice and this permission notice shall be included in all c

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@actions/exec
MIT
The MIT License (MIT)

Copyright 2019 GitHub

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@actions/http-client
MIT
Actions Http Client for Node.js
Expand All @@ -35,6 +47,18 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


@actions/io
MIT
The MIT License (MIT)

Copyright 2019 GitHub

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

tunnel
MIT
The MIT License (MIT)
Expand Down
Loading

0 comments on commit 74bec72

Please sign in to comment.