fix conflicting jobs name which broke the new workflow #37
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
# 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 |