9 HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
10 HONEYCOMB_DATASET: litmus tests
11 CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 name: "Automatic release prep"
19 - name: "Honeycomb: Start recording"
20 uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
22 apikey: ${{ env.HONEYCOMB_WRITEKEY }}
23 dataset: ${{ env.HONEYCOMB_DATASET }}
24 job-status: ${{ job.status }}
26 - name: "Honeycomb: start first step"
28 echo STEP_ID="auto-release" >> $GITHUB_ENV
29 echo STEP_START=$(date +%s) >> $GITHUB_ENV
31 - name: "Checkout Source"
32 if: ${{ github.repository_owner == 'puppetlabs' }}
33 uses: actions/checkout@v2
36 persist-credentials: false
38 - name: "PDK Release prep"
39 uses: docker://puppet/iac_release:ci
41 args: 'release prep --force'
43 CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46 if: ${{ github.repository_owner == 'puppetlabs' }}
49 echo "::set-output name=ver::$(jq --raw-output .version metadata.json)"
51 - name: "Commit changes"
52 if: ${{ github.repository_owner == 'puppetlabs' }}
54 git config --local user.email "${{ github.repository_owner }}@users.noreply.github.com"
55 git config --local user.name "GitHub Action"
57 git commit -m "Release prep v${{ steps.gv.outputs.ver }}"
59 - name: Create Pull Request
61 uses: puppetlabs/peter-evans-create-pull-request@v3
62 if: ${{ github.repository_owner == 'puppetlabs' }}
64 token: ${{ secrets.GITHUB_TOKEN }}
65 commit-message: "Release prep v${{ steps.gv.outputs.ver }}"
66 branch: "release-prep"
68 title: "Release prep v${{ steps.gv.outputs.ver }}"
70 Automated release-prep through [pdk-templates](https://github.com/puppetlabs/pdk-templates/blob/main/moduleroot/.github/workflows/auto_release.yml.erb) from commit ${{ github.sha }}.
71 Please verify before merging:
72 - [ ] last [nightly](https://github.com/${{ github.repository }}/actions/workflows/nightly.yml) run is green
73 - [ ] [Changelog](https://github.com/${{ github.repository }}/blob/release-prep/CHANGELOG.md) is readable and has no unlabeled pull requests
74 - [ ] Ensure the [changelog](https://github.com/${{ github.repository }}/blob/release-prep/CHANGELOG.md) version and [metadata](https://github.com/${{ github.repository }}/blob/release-prep/metadata.json) version match
78 if: ${{ github.repository_owner == 'puppetlabs' }}
80 echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
81 echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
83 - name: "Honeycomb: Record finish step"
86 buildevents step $TRACE_ID $STEP_ID $STEP_START 'Finished auto release workflow'