Skip to content

Commit

Permalink
Releases/v1.5.1 (#49)
Browse files Browse the repository at this point in the history
* Try auto-building again

* Bump @actions/exec from 1.0.3 to 1.0.4 (#44)

* Bump @actions/exec from 1.0.3 to 1.0.4

Bumps [@actions/exec](https://github.com/actions/toolkit/tree/HEAD/packages/exec) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/exec/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/exec)

Signed-off-by: dependabot[bot] <[email protected]>

* Fixing npm order

* Using specific ref

* Auto commit packaged action

* Add changelog

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dan Goslen <[email protected]>
Co-authored-by: dangoslen <[email protected]>

* Bump eslint from 6.3.0 to 7.14.0 (#46)

* Bump eslint from 6.3.0 to 7.14.0

Bumps [eslint](https://github.com/eslint/eslint) from 6.3.0 to 7.14.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v6.3.0...v7.14.0)

Signed-off-by: dependabot[bot] <[email protected]>

* Requires unit-tests before other jobs

* Auto commit packaged action

* Put back checkout ref

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dan Goslen <[email protected]>
Co-authored-by: dangoslen <[email protected]>
Co-authored-by: Dan Goslen <[email protected]>

* Bump @actions/github from 2.1.1 to 4.0.0 (#45)

* Bump @actions/github from 2.1.1 to 4.0.0

Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 2.1.1 to 4.0.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

Signed-off-by: dependabot[bot] <[email protected]>

* Auto commit packaged action

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dangoslen <[email protected]>

* Bump @vercel/ncc from 0.23.0 to 0.25.1 (#43)

* Bump @vercel/ncc from 0.23.0 to 0.25.1

Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.23.0 to 0.25.1.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](vercel/ncc@0.23.0...0.25.1)

Signed-off-by: dependabot[bot] <[email protected]>

* Auto commit packaged action

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dan Goslen <[email protected]>
Co-authored-by: dangoslen <[email protected]>

* Dependabot/GitHub actions/mindsers/changelog reader action v2 (#48)

* Bump mindsers/changelog-reader-action from v1 to v2

Bumps [mindsers/changelog-reader-action](https://github.com/mindsers/changelog-reader-action) from v1 to v2.
- [Release notes](https://github.com/mindsers/changelog-reader-action/releases)
- [Changelog](https://github.com/mindsers/changelog-reader-action/blob/master/CHANGELOG.md)
- [Commits](mindsers/changelog-reader-action@v1...e1a3684)

Signed-off-by: dependabot[bot] <[email protected]>

* Updating per breaking change in changelog reader

* Fixing yaml

* Use checkout

* Improving the release ntoes preview

* Cleaning up preview

* Make the markdown render correctly

* Add changelog

* Only preview on new version

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update actions/checkout requirement to v2.3.4 (#40)

* Bump mindsers/changelog-reader-action from v1 to v2 (#41)

* Try auto-building again

* Bump @actions/exec from 1.0.3 to 1.0.4 (#44)

* Bump @actions/exec from 1.0.3 to 1.0.4

Bumps [@actions/exec](https://github.com/actions/toolkit/tree/HEAD/packages/exec) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/exec/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/exec)

Signed-off-by: dependabot[bot] <[email protected]>

* Fixing npm order

* Using specific ref

* Auto commit packaged action

* Add changelog

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dan Goslen <[email protected]>
Co-authored-by: dangoslen <[email protected]>

* Bump eslint from 6.3.0 to 7.14.0 (#46)

* Bump eslint from 6.3.0 to 7.14.0

Bumps [eslint](https://github.com/eslint/eslint) from 6.3.0 to 7.14.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v6.3.0...v7.14.0)

Signed-off-by: dependabot[bot] <[email protected]>

* Requires unit-tests before other jobs

* Auto commit packaged action

* Put back checkout ref

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dan Goslen <[email protected]>
Co-authored-by: dangoslen <[email protected]>
Co-authored-by: Dan Goslen <[email protected]>

* Bump @actions/github from 2.1.1 to 4.0.0 (#45)

* Bump @actions/github from 2.1.1 to 4.0.0

Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 2.1.1 to 4.0.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

Signed-off-by: dependabot[bot] <[email protected]>

* Auto commit packaged action

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dangoslen <[email protected]>

* Bump @vercel/ncc from 0.23.0 to 0.25.1 (#43)

* Bump @vercel/ncc from 0.23.0 to 0.25.1

Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.23.0 to 0.25.1.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](vercel/ncc@0.23.0...0.25.1)

Signed-off-by: dependabot[bot] <[email protected]>

* Auto commit packaged action

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dan Goslen <[email protected]>
Co-authored-by: dangoslen <[email protected]>

* Bump mindsers/changelog-reader-action from v1 to v2

Bumps [mindsers/changelog-reader-action](https://github.com/mindsers/changelog-reader-action) from v1 to v2.
- [Release notes](https://github.com/mindsers/changelog-reader-action/releases)
- [Changelog](https://github.com/mindsers/changelog-reader-action/blob/master/CHANGELOG.md)
- [Commits](mindsers/changelog-reader-action@v1...e1a3684)

Signed-off-by: dependabot[bot] <[email protected]>

* Updating per breaking change in changelog reader

* Fixing yaml

* Use checkout

* Improving the release ntoes preview

* Cleaning up preview

* Make the markdown render correctly

* Add changelog

* Only preview on new version

Co-authored-by: Dan Goslen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dangoslen <[email protected]>
Co-authored-by: Dan Goslen <[email protected]>

* Revert "Bump mindsers/changelog-reader-action from v1 to v2 (#41)" (#47)

This reverts commit 5fd63c8.

* Update actions/checkout requirement to v2.3.4

Updates the requirements on [actions/checkout](https://github.com/actions/checkout) to permit the latest version.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/commits/5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f)

Signed-off-by: dependabot[bot] <[email protected]>

* Checking for tag against origin since later versions of checkout don't pull all tags

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dan Goslen <[email protected]>
Co-authored-by: dangoslen <[email protected]>
Co-authored-by: Dan Goslen <[email protected]>

* Finalizing changelog

* Preventing grep from failing when no match is found

* Trying another form

* Yet another attempt

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dangoslen <[email protected]>
  • Loading branch information
3 people authored Nov 23, 2020
1 parent c825ef5 commit 3f37d95
Show file tree
Hide file tree
Showing 7 changed files with 6,976 additions and 26,268 deletions.
55 changes: 50 additions & 5 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,73 @@ on:
jobs:
# unit tests
unit-tests:
if: "!contains(github.event.head_commit.author_name, 'GitHub Action')"
if: "!contains(github.event.head_commit.author_name, 'GitHub Actions')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
- run: npm install
- run: npm test
- run: npm run package
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Auto commit packaged action"

# test action works running from the graph
enforce-changelog:
needs: unit-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2.3.4
- id: read-version
run: |
echo "::set-output name=version::$(cat ./VERSION)"
echo "::set-output name=version::$(cat VERSION)"
- uses: ./
with:
expectedLatestVersion: '${{ steps.read-version.outputs.version }}'

# test action works running from the graph
enforce-changelog-v2:
needs: unit-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.3.4
- uses: ./

preview-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Read version
id: read_version
run: |
echo ::set-output name=version::$(cat VERSION)
shell: bash
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ steps.read_version.outputs.version }}
path: ./CHANGELOG.md
- name: Check for Release
id: check_release
run: |
TAG=$(git ls-remote --tags origin | grep ${{ steps.read_version.outputs.version }} || [[ $? == 1 ]] && echo '')
MISSING=$([[ -z "$TAG" ]] && echo 'true' || echo 'false')
echo ::set-output name=missing::$MISSING
shell: bash
- name: Preview Changelog
if: ${{ steps.check_release.outputs.missing == 'true' }}
uses: unsplash/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
check_for_duplicate_msg: true
msg: |
<details>
<summary>Preview of Release Notes to be Created</summary>
${{ steps.changelog_reader.outputs.changes }}
</details>
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
shell: bash
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v1
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ steps.read_version.outputs.version }}
path: ./CHANGELOG.md
- name: Check for Release
id: check_release
run: |
TAG=$(git tag -l ${{ steps.read_version.outputs.version }})
TAG=$(git ls-remote --tags origin | grep ${{ steps.read_version.outputs.version }} | cat)
MISSING=$([[ -z "$TAG" ]] && echo 'true' || echo 'false')
echo ::set-output name=missing::$MISSING
shell: bash
Expand All @@ -37,6 +37,6 @@ jobs:
with:
tag_name: ${{ steps.read_version.outputs.version }}
release_name: Changelog Enforcer ${{ steps.read_version.outputs.version }}
body: ${{ steps.changelog_reader.outputs.log_entry }}
body: ${{ steps.changelog_reader.outputs.changes }}
draft: false
prerelease: false
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [v1.5.1]
### Added
- Improved GitHub actions workflow for testing and packaging
- Preview of release notes for a new version

### Dependencies
- `@actions/exec` from `1.0.3` to `1.0.4`
- `@actions/github` from `2.1.1` to `4.0.0`
- `eslint` from `6.3.0` to `7.14.0`
- `changelog-reader-action` from `v1` to `v2`

## [v1.5.0]
### Added
- New input parameter `expectedLatestVersion`.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.5.0
v1.5.1
Loading

0 comments on commit 3f37d95

Please sign in to comment.