-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (35 loc) · 1.19 KB
/
opm-maker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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/[email protected]
- 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