Skip to content

set up workflow to support external repo use #8

set up workflow to support external repo use

set up workflow to support external repo use #8

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:
build-unclog:
uses: ./.github/workflows/build-unclog.yml
run-changelog-check:
runs-on: ubuntu-latest
needs: build-unclog
steps:
- name: write output var to env
shell: bash
run: |
echo "UNCLOG_BIN=${{needs.build-unclog.outputs.artifact-name}}" >> ${GITHUB_ENV}
- name: Checkout source code
uses: actions/checkout@v4
- name: Download changelog check binary
uses: actions/download-artifact@v3
with:
name: ${{ needs.build-unclog.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 }}
run: |
chmod +x ${UNCLOG_BIN} && ./${UNCLOG_BIN} check -fragment-env=ALL_ADDED_MARKDOWN