Add the option to let git_changelog pick the latest tag in the repo or the latest in the current branch #26
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
name: Lint PRs | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
cancel_previous: | |
name: Cancel previous runs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
lint_pr: | |
name: Lint PR on upload | |
runs-on: ubuntu-latest | |
needs: cancel_previous | |
steps: | |
- name: Checkout PR branch | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Whole repo history | |
- name: Set-up and configure Ruby | |
uses: ruby/[email protected] | |
with: | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Run danger | |
env: | |
DANGER_GITHUB_API_TOKEN: ${{ secrets.THORBOT_GITHUB_API_TOKEN }} | |
run: | | |
bundle exec danger |