Skip to content

Commit

Permalink
Add changelog enforcement action (#508)
Browse files Browse the repository at this point in the history
* Add changelog enforcement action

* Add changelog dependency

* Update syntax

* Remove bad lines

* Update changelog

* Update current version detection code

* Update path

* Update path

* Revert path

* checkout code

* Revert changelog changes

* Set version

* Label

* Reinstate uses key

* labels

* Get current version

* Don't strip quotes

* Strip quotes again
  • Loading branch information
pacso authored Oct 25, 2021
1 parent e368255 commit 0004963
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,26 @@ on:
pull_request:
branches:
- master
types:
- opened
- synchronize
- reopened
- ready_for_review
- labeled
- unlabeled

jobs:
changelog:
runs-on: ubuntu-latest
steps:
- id: read-version
run: |
echo "::set-output name=VERSION::$(cat ./lib/ice_cube/version.rb | grep VERSION | awk '{ print $3 }' | sed -e 's/\"//g')"
- uses: actions/checkout@v2
- uses: dangoslen/[email protected]
with:
skipLabels: 'skip-changelog'
expectedLatestVersion: ${{ steps.read-version.outputs.VERSION }}
lint:
runs-on: ubuntu-latest
steps:
Expand All @@ -19,7 +37,9 @@ jobs:
bundler-cache: true
- run: bundle exec standardrb
test:
needs: lint
needs:
- changelog
- lint
strategy:
matrix:
rails: ['5.2', '6.0.4', '6.1']
Expand Down

0 comments on commit 0004963

Please sign in to comment.