From b0823c7c777900fdedff876312005974e8ec2dc6 Mon Sep 17 00:00:00 2001 From: kseen Date: Sun, 18 Aug 2024 09:46:46 +0300 Subject: [PATCH] CI update --- .github/workflows/on-commit.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/on-commit.yml b/.github/workflows/on-commit.yml index f3d0cbb..4ebac10 100644 --- a/.github/workflows/on-commit.yml +++ b/.github/workflows/on-commit.yml @@ -2,8 +2,12 @@ name: CI on: - - push - - pull_request + push: + branches: + - main + pull_request: + branches: + - main jobs: fetch-commit-message: @@ -11,7 +15,7 @@ jobs: outputs: commit_message: ${{ steps.get_commit_message.outputs.message }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: "Fetch commit message" id: get_commit_message run: echo "message=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT @@ -51,9 +55,9 @@ jobs: needs: check-no-ci if: needs.check-no-ci.outputs.no_ci == 'false' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: "Set up Python" - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.x' - name: "Install dependencies"