File tree Expand file tree Collapse file tree 4 files changed +16
-168
lines changed Expand file tree Collapse file tree 4 files changed +16
-168
lines changed Original file line number Diff line number Diff line change 1+ name : " ci"
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - " main"
7+ workflow_dispatch :
8+
9+ jobs :
10+ Spec :
11+ uses : " puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
12+ secrets : " inherit"
Original file line number Diff line number Diff line change @@ -2,46 +2,8 @@ name: "Publish module"
22
33on :
44 workflow_dispatch :
5-
5+
66jobs :
7- create-github-release :
8- name : Deploy GitHub Release
9- runs-on : ubuntu-20.04
10- steps :
11- - name : Checkout code
12- uses : actions/checkout@v2
13- with :
14- ref : ${{ github.ref }}
15- clean : true
16- fetch-depth : 0
17- - name : Get Version
18- id : gv
19- run : |
20- echo "::set-output name=ver::$(jq --raw-output .version metadata.json)"
21- - name : Create Release
22- uses : actions/create-release@v1
23- id : create_release
24- env :
25- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26- with :
27- tag_name : " v${{ steps.gv.outputs.ver }}"
28- draft : false
29- prerelease : false
30-
31- deploy-forge :
32- name : Deploy to Forge
33- runs-on : ubuntu-20.04
34- steps :
35- - name : Checkout code
36- uses : actions/checkout@v2
37- with :
38- ref : ${{ github.ref }}
39- clean : true
40- - name : " PDK Build"
41- uses : docker://puppet/pdk:nightly
42- with :
43- args : ' build'
44- - name : " Push to Forge"
45- uses : docker://puppet/pdk:nightly
46- with :
47- args : ' release publish --forge-token ${{ secrets.FORGE_API_KEY }} --force'
7+ release :
8+ uses : " puppetlabs/cat-github-actions/.github/workflows/module_release.yml@main"
9+ secrets : " inherit"
File renamed without changes.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments