Skip to content

Commit

Permalink
Merge pull request #288 from npalm/develop
Browse files Browse the repository at this point in the history
chore: Release
  • Loading branch information
npalm authored Oct 20, 2022
2 parents d133b7d + fb78f55 commit a2c78d2
Show file tree
Hide file tree
Showing 7 changed files with 1,361 additions and 166 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 16

Expand All @@ -34,10 +34,10 @@ jobs:
- name: Check for modified files
id: changes
run: |
echo "::set-output name=files::$(git ls-files -m)"
echo "::set-output name=count::$(git ls-files -m | wc -l)"
echo "files=$(git ls-files -m)" >>$GITHUB_OUTPUT
echo "count=$(git ls-files -m | wc -l)" >>$GITHUB_OUTPUT
- uses: actions/github-script@v3.1.0
- uses: actions/github-script@v6.1.0
if: github.event_name == 'pull_request' && steps.changes.outputs.count != 0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -53,22 +53,22 @@ jobs:
*Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Workflow: \`${{ github.workflow }}\`*`;
github.issues.createComment({
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})
- name: Update dist in the repository
if: github.event_name != 'pull_request'
uses: stefanzweifel/git-auto-commit-action@v4.8.0
uses: stefanzweifel/git-auto-commit-action@v4.14.1
with:
commit_message: "chore(ci): Updating dist"
file_pattern: dist/*

- name: Update readme in the repository
if: github.event_name != 'pull_request'
uses: stefanzweifel/git-auto-commit-action@v4.8.0
uses: stefanzweifel/git-auto-commit-action@v4.14.1
with:
commit_message: "chore(ci): Updating README"
file_pattern: README.md
Expand Down
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,18 @@ The action will not commit any change, to ensure the changes are persisted you c
## Inputs
| parameter | description | required | default |
| - | - | - | - |
| --- | --- | --- | --- |
| readme | Readme file to update. | `false` | README.md |
| actionFile | THe action definition file. | `false` | action.yml |
| tocLevel | TOC level used for the headers. | `false` | 2 |
| lineBreaks | Line breaks to be used in updated readme (LF|CR|CRLF). | `false` | LF |



<!-- action-docs-inputs -->


<!-- action-docs-runs -->
## Runs

This action is a `node16` action.


<!-- action-docs-runs -->
## License

Expand Down
Loading

0 comments on commit a2c78d2

Please sign in to comment.