-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from actions/add-jekyll-build-pages-release-pr…
…ocess Add jekyll pages release process
- Loading branch information
Showing
6 changed files
with
187 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| --- | ||
| name-template: 'v$RESOLVED_VERSION' | ||
| tag-template: 'v$RESOLVED_VERSION' | ||
| template: | | ||
| # Changelog | ||
| $CHANGES | ||
| See details of [all code changes](https://github.com/actions/jekyll-build-pages/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION) since previous release | ||
| categories: | ||
| - title: '🚀 Features' | ||
| labels: | ||
| - 'feature' | ||
| - 'enhancement' | ||
| - title: '🐛 Bug Fixes' | ||
| labels: | ||
| - 'fix' | ||
| - 'bugfix' | ||
| - 'bug' | ||
| - title: '🧰 Maintenance' | ||
| labels: | ||
| - 'infrastructure' | ||
| - 'automation' | ||
| - 'documentation' | ||
| - title: '🏎 Performance' | ||
| label: 'performance' | ||
| change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
| version-resolver: | ||
| major: | ||
| labels: | ||
| - 'type: breaking' | ||
| minor: | ||
| labels: | ||
| - 'type: enhancement' | ||
| patch: | ||
| labels: | ||
| - 'type: bug' | ||
| - 'type: maintenance' | ||
| - 'type: documentation' | ||
| default: patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: Release new action version | ||
| on: | ||
| release: | ||
| types: [edited] | ||
| workflow_dispatch: | ||
| inputs: | ||
| TAG_NAME: | ||
| description: 'Tag name that the major tag will point to' | ||
| required: true | ||
|
|
||
| env: | ||
| TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} | ||
| REGISTRY: ghcr.io | ||
| IMAGE_NAME: ${{ github.repository }} | ||
|
|
||
| jobs: | ||
| verify_release: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v2 | ||
| - name: Grep action.yaml content | ||
| id: grep-image-content | ||
| run: | | ||
| image=$(grep -E "jekyll-build-pages.*\'" action.yml) | ||
| echo "::set-output name=image::$image" | ||
| - uses: actions-ecosystem/action-regex-match@v2 | ||
| id: regex-match | ||
| with: | ||
| text: ${{ steps.grep-image-content.outputs.image }} | ||
| regex: "jekyll-build-pages:(.*)'" | ||
| - name: Version match | ||
| run: | | ||
| if [ "${{ steps.regex-match.outputs.group1 }}" != "${{ env.TAG_NAME }}" ]; then | ||
| echo "version mismatch. action.yaml with version ${{ steps.regex-match.outputs.group1 }} Tag version ${{ env.TAG_NAME }}"; | ||
| exit 1 | ||
| fi | ||
| - name: Verify image published | ||
| run: docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG_NAME }} | ||
| update_tag: | ||
| needs: verify_release | ||
| name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes | ||
| environment: | ||
| name: releaseNewActionVersion | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| major_tag: ${{ steps.update-major-tag.outputs.major-tag }} | ||
| steps: | ||
| - name: Update the ${{ env.TAG_NAME }} tag | ||
| id: update-major-tag | ||
| uses: actions/publish-action@v0.1.0 | ||
| with: | ||
| source-tag: ${{ env.TAG_NAME }} | ||
| slack-webhook: ${{ secrets.SLACK_WEBHOOK }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.