Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit a117946

Browse files
committed
Creating or updating opm-maker workflow
1 parent 2ee8d8f commit a117946

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/opm-maker.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
paths:
66
- "Custom/*.sopm"
7+
- ".github/workflows/*.yml"
78

89
jobs:
910

@@ -25,12 +26,19 @@ jobs:
2526
- name: Get version tag
2627
id: get_version
2728
run: echo ::set-output name=VERSION::$(grep '<Version>' Custom/*.sopm | sed -r 's/.+>(.+)<.+/\1/')
29+
30+
- uses: rlespinasse/github-slug-action@master
31+
- name: Print slug variables
32+
run: |
33+
echo ${{ env.GITHUB_REF_SLUG }}
34+
echo ${{ env.GITHUB_HEAD_REF_SLUG }}
35+
echo ${{ env.GITHUB_BASE_REF_SLUG }}
2836
2937
- name: Upload OPM
3038
uses: "marvinpinto/action-automatic-releases@latest"
3139
with:
3240
repo_token: "${{ secrets.GITHUB_TOKEN }}"
33-
automatic_release_tag: "latest"
41+
automatic_release_tag: ${{ env.GITHUB_REF_SLUG }}
3442
prerelease: false
3543
title: ${{ steps.get_version.outputs.VERSION }}
3644
files: |

0 commit comments

Comments
 (0)