From 97f1bad00a5ff2280b271d951e58cbea1fb22499 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Mon, 31 Jul 2023 20:48:34 +0000 Subject: [PATCH] tools/github actions: build: always check out the latest commit of the branch that triggered the workflow (#52) - without this, the commit that would be checked out would be the one that triggered the workflow - when called from the needs: keyword in daily-update-metadata.yml, the build would run from the version prior to automatic metadata update/commit back to the repository --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 077ac66388..c6ed283c5a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,6 +30,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} - run: make install - run: make awesome_lint - run: make export_markdown @@ -47,6 +49,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} - run: make install - run: make awesome_lint - run: make export_html