From 81e14966106fb363ea560e271d4a5f9327dd75af Mon Sep 17 00:00:00 2001 From: Ivanq Date: Wed, 24 Mar 2021 20:24:32 +0300 Subject: [PATCH 1/2] Add check-pr.yml --- .github/workflows/check-pr.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/check-pr.yml diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml new file mode 100644 index 00000000..4e84faac --- /dev/null +++ b/.github/workflows/check-pr.yml @@ -0,0 +1,13 @@ +name: Check PR modifications +on: + pull_request: + branches: + - master + paths: + - index.md +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Return error + run: echo Test From 1babd85424aaed704df91abb31fa0d31155143de Mon Sep 17 00:00:00 2001 From: Ivanq Date: Wed, 24 Mar 2021 20:30:58 +0300 Subject: [PATCH 2/2] Update check-pr.yml --- .github/workflows/check-pr.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index 4e84faac..78e670b2 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -1,4 +1,4 @@ -name: Check PR modifications +name: Do not modify index.md directly, add a file to _data/signed instead on: pull_request: branches: @@ -9,5 +9,5 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - name: Return error - run: echo Test + - name: Throw error + run: echo "Do not modify index.md directly, add a file to _data/signed instead"; exit 1