This repository was archived by the owner on Sep 2, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : OPM Maker
2+
3+ on :
4+ push :
5+ paths :
6+ - " Custom/*.sopm"
7+ - " .github/workflows/*.yml"
8+ workflow_dispatch :
9+ inputs :
10+ logLevel :
11+ description : ' Log level'
12+ required : true
13+ default : ' warning'
14+
15+ jobs :
16+
17+ build :
18+
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - uses : actions/checkout@v2
23+ - name : Build OPM
24+ 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
25+
26+
27+ # Test
28+ # - name: OPM tests
29+ # uses:
30+ # run: docker-compose --file scripts/test/docker-compose.test.yml
31+
32+ - name : Get version tag
33+ id : get_version
34+ run : echo ::set-output name=VERSION::$(grep '<Version>' Custom/*.sopm | sed -r 's/.+>(.+)<.+/\1/')
35+
36+ - uses : rlespinasse/github-slug-action@1.1.1
37+ - name : Print slug variables
38+ run : |
39+ echo ${{ env.GITHUB_REF_SLUG }}
40+ echo ${{ env.GITHUB_HEAD_REF_SLUG }}
41+ echo ${{ env.GITHUB_BASE_REF_SLUG }}
42+
43+ - name : Upload OPM
44+ uses : " marvinpinto/action-automatic-releases@latest"
45+ with :
46+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
47+ automatic_release_tag : ${{ env.GITHUB_REF_SLUG }}
48+ prerelease : false
49+ title : ${{ steps.get_version.outputs.VERSION }}
50+ files : |
51+ *.opm
You can’t perform that action at this time.
0 commit comments