Skip to content

Commit

Permalink
Delete for now
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Jan 10, 2025
1 parent 96df0aa commit 52b3549
Showing 1 changed file with 0 additions and 53 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,59 +115,6 @@ jobs:
git commit -m 'Style *mds' || echo "No changes to commit"
git push origin || echo "No changes to commit"
############################# Check Markdown Formatting ###################################
markdown-linter:
name: Markdown linter
needs: yaml-check
runs-on: ubuntu-latest
if: ${{needs.yaml-check.outputs.toggle_md_linter == 'yes'}}

steps:
- name: Checkout files
uses: actions/checkout@v4

- uses: DavidAnson/markdownlint-cli2-action@v19
with:
globs: '**/*.md'
continue-on-error: true

- 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: Markdown linter

- name: Get Job ID from GH API
id: get-job-id
env:
GH_TOKEN: ${{ secrets.GH_PAT }}
run: |
jobs=$(gh api repos/${{ github.repository }}/actions/runs/${{ github.run_id}}/attempts/${{ github.run_attempt }}/jobs)
job_id=$(echo $jobs | jq -r '.jobs[] | select(.runner_name=="${{ runner.name }}") | .id')
echo $job_id
echo "job_id=$job_id" >> $GITHUB_OUTPUT
- name: Build components of the comment
id: build-components
run: |
report_link=$(echo "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ steps.get-job-id.outputs.job_id }}")
echo $report_link
echo "time=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
echo "commit_id=$GITHUB_SHA" >> $GITHUB_OUTPUT
echo ${{steps.commit.outputs.markdown_issues}}
- name: Create or uxpdate comment
uses: peter-evans/create-or-update-comment@v2
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
[Markdown linter report here](${{ steps.build-components.outputs.report_link }})
_Updated at ${{ steps.build-components.outputs.time }} with changes from the latest commit ${{ steps.build-components.outputs.commit_id }}_
edit-mode: replace

############################# Readability Report ###################################

readability-report:
Expand Down

0 comments on commit 52b3549

Please sign in to comment.