File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Auto release"
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ release_prep :
8+ uses : " puppetlabs/cat-github-actions/.github/workflows/module_release_prep.yml@main"
9+ secrets : " inherit"
Original file line number Diff line number Diff line change 1+ name : " Module Release"
2+
3+ on :
4+ workflow_call :
5+
6+ jobs :
7+ release :
8+ name : " Release"
9+ runs-on : " ubuntu-latest"
10+ if : github.repository_owner == 'puppetlabs'
11+
12+ steps :
13+
14+ - name : " Checkout"
15+ uses : " actions/checkout@v3"
16+ with :
17+ ref : " ${{ github.ref }}"
18+ clean : true
19+ fetch-depth : 0
20+
21+ - name : " Get version"
22+ id : " get_version"
23+ run : |
24+ echo "version=$(jq --raw-output .version metadata.json)" >> $GITHUB_OUTPUT
25+
26+ - name : " PDK build"
27+ uses : " docker://puppet/pdk:nightly"
28+ with :
29+ args : " build"
30+
31+ - name : " Create release"
32+ run : |
33+ gh release create v${{ steps.get_version.outputs.version }} --title v${{ steps.get_version.outputs.version }}
34+ env :
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments