Use this action to compare what's at the HEAD of your default branch, compared to what was lasted included in last release
Create a new workflow in your repository with the following configuration
name: 'Daily Release Workflow'
on:
schedule:
- cron: '0 13 * * 1-5'
jobs:
build:
name: Stale Commits Notifier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: ecobee/repo-compare@master
with:
include-prerelease: false
default-branch: master
slack-username: shipit
slack-channel: '#springfield'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
Install the dependencies
$ npm install
Build the typescript and package it for distribution
$ npm run build && npm run pack
Run the tests ✔️
$ npm test
PASS __tests__/main.test.ts
Run
✓ calculates how many commits the repo is behind (38ms)
✓ sets `unreleased-commit-count (33ms)
✓ sets `unreleased-commit-messages (18ms)
✓ sets `unreleased-diff-url (15ms)
✓ sets `latest-release-date (16ms)
...
Actions are run from GitHub repos so we will checkin the packed dist folder.
Then run ncc and push the results:
$ npm run pack
$ git add dist
$ git commit -a -m "prod dependencies"
$ git push origin releases/v1
The action is now published! 🚀
See the versioning documentation
You can now validate the action by referencing ./
in a workflow in your repo (see test.yml)
uses: ./
with:
milliseconds: 1000
See the actions tab for runs of this action! 🚀
After testing you can create a v1 tag to reference the stable and latest V1 action