diff --git a/.github/workflows/forge_action.yml b/.github/workflows/forge_action.yml index 1a3d29f..20eed90 100644 --- a/.github/workflows/forge_action.yml +++ b/.github/workflows/forge_action.yml @@ -1,6 +1,5 @@ name: Build and publish to Puppet Forge - on: push: tags: @@ -11,11 +10,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Get latest tag - run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10}) + id: vars + run: echo ::set-output name=tag::${GITHUB_REF:10} - name: Clone repository - uses: actions/checkout@v1 + uses: actions/checkout@v2 with: - ref: ${{ env.RELEASE_VERSION }} + ref: ${{ steps.vars.outputs.tag }} - name: Build and publish module uses: barnumbirr/action-forge-publish@v2.3.0 env: