Add auto-release.yml in .sync.yml pdksync_releaseprepupdate
authordaiana <daiana.mezdrea@yahoo.com>
Fri, 2 Apr 2021 13:40:23 +0000 (16:40 +0300)
committerdaiana <daiana.mezdrea@yahoo.com>
Fri, 2 Apr 2021 13:40:23 +0000 (16:40 +0300)
.github/workflows/auto_release.yml
.sync.yml

index 2a82a7b919831d211192ba7dda8ab49b70a3c268..d15d148d995ef34bcdda1e37a019e91474d5ec82 100644 (file)
@@ -46,12 +46,12 @@ jobs:
       if: ${{ github.repository_owner == 'puppetlabs' }}
       id: gv
       run: |
-        echo "::set-output name=ver::$(cat metadata.json | jq .version | tr -d \")"
+        echo "::set-output name=ver::$(jq --raw-output .version metadata.json)"
 
     - name: "Commit changes"
       if: ${{ github.repository_owner == 'puppetlabs' }}
       run: |
-        git config --local user.email "action@github.com"
+        git config --local user.email "${{ github.repository_owner }}@users.noreply.github.com"
         git config --local user.name "GitHub Action"
         git add .
         git commit -m "Release prep v${{ steps.gv.outputs.ver }}"
@@ -66,7 +66,12 @@ jobs:
         branch: "release-prep"
         delete-branch: true
         title: "Release prep v${{ steps.gv.outputs.ver }}"
-        body: "Automated release-prep through [pdk-templates](https://github.com/puppetlabs/pdk-templates/blob/main/moduleroot/.github/workflows/auto_release.yml.erb)"
+        body: |
+          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 }}. 
+          Please verify before merging:
+          - [ ] last [nightly](https://github.com/${{ github.repository }}/actions/workflows/nightly.yml) run is green
+          - [ ] [Changelog](https://github.com/${{ github.repository }}/blob/release-prep/CHANGELOG.md) is readable and has no unlabeled pull requests
+          - [ ] 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
         labels: "maintenance"
 
     - name: PR outputs
index ddd07353c92416d87448609935ce36dd6b19eb53..c6022a1f4995f4bcf4f1d9e9c2ed7c7d8c364745 100644 (file)
--- a/.sync.yml
+++ b/.sync.yml
@@ -24,5 +24,7 @@ spec/spec_helper.rb:
   unmanaged: false
 .github/workflows/release.yml:
   unmanaged: false
+.github/workflows/auto_release.yml:
+  unmanaged: false
 .travis.yml:
   delete: true