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
This commit is contained in:
nodiscc 2023-07-31 20:48:34 +00:00 committed by GitHub
parent f40e6f92df
commit 97f1bad00a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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