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

Commit

Permalink
Creating or updating opm-maker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
richieri committed Aug 25, 2020
1 parent 5449185 commit bd1ebe4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/opm-maker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
paths:
- "Custom/*.sopm"
- ".github/workflows/*.yml"

jobs:

Expand All @@ -25,12 +26,19 @@ jobs:
- name: Get version tag
id: get_version
run: echo ::set-output name=VERSION::$(grep '<Version>' Custom/*.sopm | sed -r 's/.+>(.+)<.+/\1/')

- uses: rlespinasse/github-slug-action@master
- 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: |
Expand Down

0 comments on commit bd1ebe4

Please sign in to comment.