diff --git a/.github/workflows/gen.yml b/.github/workflows/gen.yml index ac271be7..b76dfd97 100644 --- a/.github/workflows/gen.yml +++ b/.github/workflows/gen.yml @@ -8,10 +8,16 @@ jobs: steps: - uses: actions/checkout@v3 + with: + submodules: recursive - - name: libbpf-version + - name: update libbpf working-directory: libbpf - run: echo "LIBBPF_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV + run: | + set -e + git fetch origin + git checkout origin/HEAD + echo "LIBBPF_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV - uses: dtolnay/rust-toolchain@master with: