From 8f4d683586a3dd289d2fc6de0f846cfd0d54d128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isabel=20Sch=C3=B6ps=20Thiel=20=40github=2Ecom?= <127110010+IsabelSchoepd@users.noreply.github.com> Date: Thu, 23 Nov 2023 22:35:38 +0100 Subject: [PATCH] github/workflows directory --- .github/workflows/main.yml | 14 -------------- .github/workflows/repo_linter.sh | 22 ---------------------- 2 files changed, 36 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100755 .github/workflows/repo_linter.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index bc8499a..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,14 +0,0 @@ -on: - pull_request: - branches: [main] - paths: - - 'readme.md' -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: awesome-lint - run: ./.github/workflows/repo_linter.sh diff --git a/.github/workflows/repo_linter.sh b/.github/workflows/repo_linter.sh deleted file mode 100755 index d0d5824..0000000 --- a/.github/workflows/repo_linter.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -# Find the repo in the git diff and then set it to an env variables. -REPO_TO_LINT=$( - git diff origin/main -- readme.md | - # Look for changes (indicated by lines starting with +). - grep ^+ | - # Get the line that includes the readme. - grep -Eo 'https.*#readme' | - # Get just the URL. - sed 's/#readme//') - -# If there's no repo found, exit quietly. -if [ -z "$REPO_TO_LINT" ]; then - echo "No new link found in the format: https://....#readme" -else - echo "Cloning $REPO_TO_LINT" - mkdir cloned - cd cloned - git clone "$REPO_TO_LINT" . - npx awesome-lint -fi