Skip to content
on:
push:
branches:
- jy/add-release-check-action
schedule:
- cron: '0 9 * * *' # Run daily at 9am
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Always checkout the main branch
ref: main
# Do a deep checkout
fetch-depth: 0
# Fetch all the release tags
fetch-tags: true
- name: Check for unreleased changes
id: get-diff-log
run: |
export LOG=`git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:'- %s – @%al.' --no-merges`
echo "LOG=$LOG" >> $GITHUB_ENV
- name: View Log
run: |
echo ${{ steps.vars.outputs.LOG }}
# - name: Unreleased changes Slack Report
# uses: ravsamhq/notify-slack-action@v2
# if: ${{ always() && github.ref_name == 'main' }}
# with:
# status: ${{ job.status }}
# notify_when: 'success'
# notification_title: 'CLI latest release failure'
# message_format: '*Unreleased CLI Changes*'
# footer: '<{run_url}|View Run> | <https://www.npmjs.com/package/@hubspot/cli?activeTab=versions|View in NPM>'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}