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 020ccbb commit b334f2c
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/opm-maker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: OPM Maker

on:
push:
paths:
- "Custom/*.sopm"
- ".github/workflows/*.yml"

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build OPM
run: docker run --rm -v ${{ github.workspace }}:/pkg -w /pkg ligero/otrs-itsm otrs.Console.pl Dev::Package::Build --allow-root --module-directory=/pkg Custom/*.sopm /pkg


# Test
#- name: OPM tests
# uses:
# run: docker-compose --file scripts/test/docker-compose.test.yml

- 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: ${{ env.GITHUB_REF_SLUG }}
prerelease: false
title: ${{ steps.get_version.outputs.VERSION }}
files: |
*.opm

0 comments on commit b334f2c

Please sign in to comment.