Skip to content

Commit

Permalink
build inline
Browse files Browse the repository at this point in the history
  • Loading branch information
kasey committed Jan 8, 2025
1 parent 3cde30b commit 553e2c7
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/dogfood.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,21 @@ on:
branches: [ "main" ]

jobs:
build-unclog:
runs-on: ubuntu-latest
outputs:
artifact-name: ${{ steps.unclog-build.outputs.artifact-name }}
steps:

- name: Checkout source code
uses: actions/checkout@v4

- name: Run unclog build
id: unclog-build
uses: ./.github/actions/build-unclog

run-changelog-check:
runs-on: ubuntu-latest
needs: build-unclog
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: ${{ needs.build-unclog.outputs.artifact-name }}
name: ${{ steps.unclog-build.outputs.artifact-name }}

- name: Get new changelog files
id: new-changelog-files
Expand All @@ -46,9 +35,7 @@ jobs:
shell: bash
env:
ALL_ADDED_MARKDOWN: ${{ steps.new-changelog-files.outputs.added_files }}
UNCLOG_BIN: ${{ steps.unclog-download.outputs.download-path}}/${{ needs.build-unclog.outputs-artifact-name }}
UNCLOG_BIN_DIR: ${{ steps.unclog-download.outputs.download-path}}
UNCLOG_BIN_FNAME: ${{ needs.build-unclog.outputs-artifact-name }}
#UNCLOG_BIN: ${{ steps.unclog-download.outputs.download-path}}/${{ steps.unclog-build.outputs.artifact-name }}
#UNCLOG_DIR: ${{ steps.unclog-download.outputs.download-path}}
run: |
echo "UNCLOG_BIN=${UNCLOG_BIN}, UNCLOG_BIN_DIR=${UNCLOG_BIN_DIR}, UNCLOG_BIN_FNAME=${UNCLOG_BIN_FNAME}"
#chmod +x ${UNCLOG_BIN} && ./${UNCLOG_BIN} check -fragment-env=ALL_ADDED_MARKDOWN
chmod +x unclog && ./unclog check -fragment-env=ALL_ADDED_MARKDOWN

0 comments on commit 553e2c7

Please sign in to comment.