From 7be6dfe06d04801735621c9755b7aca3ab090774 Mon Sep 17 00:00:00 2001 From: Oliver Switzer Date: Tue, 26 Nov 2024 16:18:32 -0500 Subject: [PATCH] Test running on test branch --- .github/workflows/publish.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4005694..1c44b98 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,6 +2,9 @@ name: Publish on: workflow_dispatch: + push: + branches: + - improve-auto-versioning jobs: version: @@ -12,6 +15,7 @@ jobs: steps: - uses: actions/checkout@v3 with: + ref: improve-auto-versioning fetch-depth: 0 - name: Calculate semantic version @@ -30,17 +34,13 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Calculate semantic version - id: versioning - uses: bitshifted/git-auto-semver@v1.1.0 - with: - main_branch: main - create_tag: false - tag_prefix: "v" + - name: Get calculated version + id: version + run: echo "version=${{ needs.version.outputs.version }}" >> $GITHUB_OUTPUT - name: Update version in mix.exs env: - RELEASE_VERSION: ${{ steps.versioning.outputs.version-string }} + RELEASE_VERSION: ${{ steps.version.outputs.version }} run: | git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" @@ -53,7 +53,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - VERSION=${{ steps.versioning.outputs.version-string }} + VERSION=${{ steps.version.outputs.version }} git tag $VERSION git push origin $VERSION gh release create $VERSION \