From 5c1d188cfb9cb620c6c6691d48da31c903fc5d62 Mon Sep 17 00:00:00 2001 From: Kieran <32241933+KieranRobson@users.noreply.github.com> Date: Sat, 4 Jun 2022 19:31:19 +0100 Subject: [PATCH 1/2] Create main.yml --- .github/workflows/main.yml | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..decb2362 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,46 @@ +name: Awesome Lint +on: + pull_request: + push: + branches: + - main + +jobs: + awesome-lint: + strategy: + fail-fast: false + matrix: + files: + - "readme.md" + runs-on: ubuntu-latest + steps: + - name: "checkout repo" + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: asdf_install + uses: asdf-vm/actions/install@v1 + - name: "linting: ${{ matrix.files }}" + run: npx -y awesome-lint ${{ matrix.files }} + awesome-bot: + strategy: + fail-fast: false + matrix: + files: + - "readme.md" + runs-on: ubuntu-latest + steps: + - name: "checkout repo" + uses: actions/checkout@v2.0.0 + with: + fetch-depth: 0 + - name: "setup ruby" + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.0.1 + bundler-cache: true + - name: "install awesome-bot" + run: gem install awesome_bot + - name: "linting: ${{ matrix.files }}" + run: awesome_bot --allow-redirect ${{ matrix.files }} + From b0c9a8741de24149e48718e8323442ef11147ae4 Mon Sep 17 00:00:00 2001 From: Kieran <32241933+KieranRobson@users.noreply.github.com> Date: Sat, 4 Jun 2022 19:32:06 +0100 Subject: [PATCH 2/2] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index decb2362..df9428ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ on: pull_request: push: branches: - - main + - master jobs: awesome-lint: