Skip to content

set up workflow to support external repo use #31

set up workflow to support external repo use

set up workflow to support external repo use #31

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: dogfood
on:
pull_request:
branches: [ "main" ]
jobs:
run-changelog-check:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: build-unclog
id: unclog-build
uses: ./.github/actions/build-unclog
- name: Download changelog check binary
id: unclog-download
uses: actions/download-artifact@v4
with:
name: ${{ steps.unclog-build.outputs.artifact-name }}
- name: Get new changelog files
id: new-changelog-files
uses: tj-actions/changed-files@v45
with:
files: |
log/**.md
- name: Run lint command
shell: bash
env:
ALL_ADDED_MARKDOWN: ${{ steps.new-changelog-files.outputs.added_files }}
#UNCLOG_BIN: ${{ steps.unclog-download.outputs.download-path}}/${{ steps.unclog-build.outputs.artifact-name }}
#UNCLOG_DIR: ${{ steps.unclog-download.outputs.download-path}}
run: |
chmod +x unclog && ./unclog check -fragment-env=ALL_ADDED_MARKDOWN