fix: fix checkout to commit

This commit is contained in:
Slava-Shchipunov
2024-09-18 12:43:49 +07:00
parent cee202e856
commit ba9ccdbb1c

View File

@@ -52,9 +52,12 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
repository: openwrt/openwrt repository: openwrt/openwrt
ref: ${{ env.SNAPSHOT_COMMIT_SHA }}
fetch-depth: 0 fetch-depth: 0
- name: Checkout snapshot commit in openwrt repo
working-directory: ./openwrt
run: git checkout ${{ env.SNAPSHOT_COMMIT_SHA}}
- name: Building kernel and tools - name: Building kernel and tools
run: | run: |
echo "pkgarch: ${{ matrix.build_env.pkgarch}}, target:${{ matrix.build_env.target}}, subtarget: ${{ matrix.build_env.subtarget}}" echo "pkgarch: ${{ matrix.build_env.pkgarch}}, target:${{ matrix.build_env.target}}, subtarget: ${{ matrix.build_env.subtarget}}"