7 HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
8 HONEYCOMB_DATASET: litmus tests
9 CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 name: "Automatic release prep"
17 - name: "Honeycomb: Start recording"
18 uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
20 apikey: ${{ env.HONEYCOMB_WRITEKEY }}
21 dataset: ${{ env.HONEYCOMB_DATASET }}
22 job-status: ${{ job.status }}
24 - name: "Honeycomb: start first step"
26 echo STEP_ID="auto-release" >> $GITHUB_ENV
27 echo STEP_START=$(date +%s) >> $GITHUB_ENV
29 - name: "Checkout Source"
30 if: ${{ github.repository_owner == 'puppetlabs' }}
31 uses: actions/checkout@v2
34 persist-credentials: false
36 - name: "PDK Release prep"
37 uses: docker://puppet/iac_release:ci
39 args: 'release prep --force'
41 CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44 if: ${{ github.repository_owner == 'puppetlabs' }}
47 echo "::set-output name=ver::$(jq --raw-output .version metadata.json)"
49 - name: "Commit changes"
50 if: ${{ github.repository_owner == 'puppetlabs' }}
52 git config --local user.email "${{ github.repository_owner }}@users.noreply.github.com"
53 git config --local user.name "GitHub Action"
55 git commit -m "Release prep v${{ steps.gv.outputs.ver }}"
57 - name: Create Pull Request
59 uses: puppetlabs/peter-evans-create-pull-request@v3
60 if: ${{ github.repository_owner == 'puppetlabs' }}
62 token: ${{ secrets.GITHUB_TOKEN }}
63 commit-message: "Release prep v${{ steps.gv.outputs.ver }}"
64 branch: "release-prep"
66 title: "Release prep v${{ steps.gv.outputs.ver }}"
68 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 }}.
69 Please verify before merging:
70 - [ ] last [nightly](https://github.com/${{ github.repository }}/actions/workflows/nightly.yml) run is green
71 - [ ] [Changelog](https://github.com/${{ github.repository }}/blob/release-prep/CHANGELOG.md) is readable and has no unlabeled pull requests
72 - [ ] 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
76 if: ${{ github.repository_owner == 'puppetlabs' }}
78 echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
79 echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
81 - name: "Honeycomb: Record finish step"
84 buildevents step $TRACE_ID $STEP_ID $STEP_START 'Finished auto release workflow'