mirror of
https://github.com/BreizhHardware/awesome-selfhosted-data.git
synced 2026-01-19 00:27:29 +01: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:
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
|
||||
|
||||
Reference in New Issue
Block a user