diff --git a/.github/workflows/build-publish-docker.yml b/.github/workflows/build-publish-docker.yml index 6eaf5a4..f704568 100644 --- a/.github/workflows/build-publish-docker.yml +++ b/.github/workflows/build-publish-docker.yml @@ -15,30 +15,19 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - # https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions - - name: Semantic Release Publish - id: semantic - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # because of using none default (conventionalcommits) `preset` for `semantic-release`, we should add dependency `conventional-changelog-conventionalcommits` -# run: npx -p conventional-changelog-conventionalcommits -p @semantic-release/git -p @semantic-release/changelog -p @semantic-release/exec semantic-release - - - name: Semantic Release Outputs - run: | - echo ${{ steps.semantic.outputs.semantic_nextRelease_version }} - echo ${{ steps.semantic.outputs.semantic_nextRelease_channel }} - echo ${{ steps.semantic.outputs.semantic_nextRelease_gitTag }} - echo ${{ steps.semantic.outputs.semantic_lastRelease_version }} - echo ${{ steps.semantic.outputs.semantic_lastRelease_channel }} - echo ${{ steps.semantic.outputs.semantic_lastRelease_gitTag }} - -# -# - name: Get release tag -# run: echo "::set-output name=tag::$(echo $GITHUB_REF)" -# -# - name: Print release tag -# run: echo "The release tag is ${{ steps.get_tag.outputs.tag }}" + - name: Process version of the tag + id: version + uses: ncipollo/semantic-version-action@v1 + - name: Dump steps context + env: + STEPS_CONTEXT: ${{ toJson(steps.version.outputs) }} + run: echo "$STEPS_CONTEXT" + # + # - name: Get release tag + # run: echo "::set-output name=tag::$(echo $GITHUB_REF)" + # + # - name: Print release tag + # run: echo "The release tag is ${{ steps.get_tag.outputs.tag }}" - name: Login to DockerHub uses: docker/login-action@v2