Skip to content

build(deps-dev): bump sass from 1.58.2 to 1.61.0 in /docs #74

build(deps-dev): bump sass from 1.58.2 to 1.61.0 in /docs

build(deps-dev): bump sass from 1.58.2 to 1.61.0 in /docs #74

Workflow file for this run

name: GitHub Actions Linter
on: pull_request
jobs:
lint-a-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: setup-actionlint
name: setup-actionlint
uses: ./.github/actions/setup-actionlint
# SC2016 incorrect because of the use of `$VAR` in the `-format` parameter. The `$err` are interpreted by the linter as shell variable
# SC2086 incorrect when setting git a env variable
- name: run ActionLint
continue-on-error: true
env:
LINTER: ${{ steps.setup-actionlint.outputs.executable }}
run: |
touch report.txt
"$LINTER" \
-ignore 'missing input "say"' \
-ignore 'SC2016' \
-ignore 'SC2086' \
-format '{{range $err := .}}### Error at line {{$err.Line}}, col {{$err.Column}} of {{$err.Filepath}}\n\n{{$err.Message}}\n\n \n{{$err.Snippet}}\n \n\n{{end}}' > report.txt
- name: Get report
id: get-report
uses: actions/github-script@v6
with:
result-encoding: string
script: |
const fs = require('fs').promises;
var reportBulk = (await fs.readFile("report.txt")).toString();
return reportBulk;
- name: Format comment message
id: format-comment
uses: actions/github-script@v6
with:
github-token: $GITHUB_TOKEN
result-encoding: string
script: |
const output = `${{ steps.get-report.outputs.result }}`
return output != `` ? `#### Lint 📖\n` + output : ``
- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: Lint
- name: Create comment
if: steps.fc.outputs.comment-id == '' && steps.get-report.outputs.result != ''
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
${{ steps.format-comment.outputs.result }}
- name: Update comment
if: steps.fc.outputs.comment-id != '' && steps.get-report.outputs.result != ''
uses: peter-evans/create-or-update-comment@v2
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
body: |
${{ steps.format-comment.outputs.result }}
edit-mode: replace
- name: Delete comment
if: steps.fc.outputs.comment-id != '' && steps.get-report.outputs.result == ''
uses: detomarco/delete-comment@50bbf61036086be7b7294e71e1177ec0d4d840ab
with:
comment-id: ${{ steps.fc.outputs.comment-id }}