diff --git a/.github/workflows/opm-maker.yml b/.github/workflows/opm-maker.yml index 5b24af6..abf34bf 100644 --- a/.github/workflows/opm-maker.yml +++ b/.github/workflows/opm-maker.yml @@ -32,12 +32,19 @@ jobs: - name: Get version tag id: get_version run: echo ::set-output name=VERSION::$(grep '' Custom/*.sopm | sed -r 's/.+>(.+)<.+/\1/') + + - uses: rlespinasse/github-slug-action@1.1.1 + - name: Print slug variables + run: | + echo ${{ env.GITHUB_REF_SLUG }} + echo ${{ env.GITHUB_HEAD_REF_SLUG }} + echo ${{ env.GITHUB_BASE_REF_SLUG }} - name: Upload OPM uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest" + automatic_release_tag: ${{ env.GITHUB_REF_SLUG }} prerelease: false title: ${{ steps.get_version.outputs.VERSION }} files: |