From 9cbbd88cb982f219a21a7fa0d3473fb58254bf5e Mon Sep 17 00:00:00 2001 From: Simon Kirchner Date: Fri, 24 May 2024 13:45:25 +0200 Subject: [PATCH 1/2] Updated blank.yml --- .github/workflows/blank.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 5211f8f..1627f55 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -45,6 +45,8 @@ jobs: if: needs.version.outputs.versionType != 'none' steps: + - uses: actions/checkout@v4 + - name: Get next version uses: reecetech/version-increment@2024.4.4 id: version From ddb51d2a888b077d1e76351a11e974dab40fe2f5 Mon Sep 17 00:00:00 2001 From: "Kisimedia.de" Date: Fri, 24 May 2024 13:57:11 +0200 Subject: [PATCH 2/2] Update blank.yml --- .github/workflows/blank.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 1627f55..e228e09 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -6,6 +6,8 @@ name: Version on: pull_request: branches: [ "main" ] + push: + branches: [ "main" ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -18,6 +20,7 @@ jobs: runs-on: ubuntu-latest outputs: versionType: ${{ steps.keyword.outputs.versionType }} + if: github.event_name == 'pull_request' # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -42,7 +45,7 @@ jobs: needs: version permissions: contents: write - if: needs.version.outputs.versionType != 'none' + if: needs.version.outputs.versionType != 'none' && github.event_name == 'push' steps: - uses: actions/checkout@v4 @@ -73,4 +76,4 @@ jobs: files: release.zip prerelease: false draft: false - tag_name: ${{ steps.version.outputs.version }} \ No newline at end of file + tag_name: ${{ steps.version.outputs.version }}