mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted-data.git
synced 2026-03-11 08:55:24 +00:00
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:
parent
f40e6f92df
commit
97f1bad00a
1 changed files with 4 additions and 0 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue