diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 5211f8f..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,9 +45,11 @@ 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 + - name: Get next version uses: reecetech/version-increment@2024.4.4 id: version @@ -71,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 }}