Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Github Actions auto_release workflow #394

Merged
merged 1 commit into from
Feb 5, 2021

Conversation

carabasdaniel
Copy link
Contributor

@carabasdaniel carabasdaniel commented Feb 4, 2021

Addresses comments on PR: #393 (review)

@carabasdaniel carabasdaniel force-pushed the auto_releasewf branch 2 times, most recently from 80696d6 to 673e5cd Compare February 4, 2021 15:50
@carabasdaniel carabasdaniel marked this pull request as ready for review February 4, 2021 15:54
@carabasdaniel carabasdaniel requested review from a team as code owners February 4, 2021 15:54
carabasdaniel pushed a commit to puppetlabs/puppetlabs-testing that referenced this pull request Feb 4, 2021
carabasdaniel pushed a commit to puppetlabs/puppetlabs-testing that referenced this pull request Feb 4, 2021
@carabasdaniel
Copy link
Contributor Author

@david22swan david22swan merged commit ec9c129 into puppetlabs:main Feb 5, 2021
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Auto-Release prep"

- name: "Get Version"
if: ${{ github.repository_owner == '<%= common['owner'] %>' }}
id: gv
run: |
echo "::set-output name=ver::$(cat metadata.json | jq .version)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "::set-output name=ver::$(cat metadata.json | jq .version)"
echo "::set-output name=ver::$(cat metadata.json | jq .version | tr -d \")"

remove additional quotes from result:

2021-02-05_10MS+0000_444x126

branch: "release-prep"
delete-branch: true
title: "Auto-release prep ${{ steps.gv.outputs.ver }}"
title: "Release prep v${{ steps.gv.outputs.ver }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: "Release prep v${{ steps.gv.outputs.ver }}"
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)"

Avoid advertising for others when we can advertise for our own stuff.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra points for extracting the generated changelog bits of this release and add them to the text here.

with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Auto-release prep"
commit-message: "Release prep v${{ steps.gv.outputs.ver }}"
branch: "release-prep"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
branch: "release-prep"
branch: "release-prep"
delete-branch: true

clean up afterwards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants