diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 2f84dd4..6e9d693 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -54,12 +54,11 @@ jobs: new_version: ${{ steps.version.outputs.new_version }} skip: ${{ steps.version.outputs.skip }} steps: - - name: Install dependencies - run: apt-get update && apt-get install -y --no-install-recommends bash git python3 - - - uses: actions/checkout@v4 - with: - fetch-depth: 0 + - name: Install dependencies and checkout + run: | + apt-get update && apt-get install -y --no-install-recommends bash git python3 + git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git . + git checkout ${GITHUB_SHA} - name: Determine version bump id: version @@ -182,7 +181,10 @@ jobs: image: catthehacker/ubuntu:act-latest options: --privileged steps: - - uses: actions/checkout@v4 + - name: Checkout repository + run: | + git clone --depth=1 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git . + git checkout ${GITHUB_SHA} - name: Build and push image shell: bash