diff --git a/.github/workflows/check-build-test.yml b/.github/workflows/check-build-test.yml index fc5f4862..d1f65f12 100644 --- a/.github/workflows/check-build-test.yml +++ b/.github/workflows/check-build-test.yml @@ -25,10 +25,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves fetch-depth: 0 + fetch-tags: true - name: Checkout GitHub merge if: github.event.pull_request @@ -55,9 +56,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + fetch-tags: true - name: Checkout GitHub merge if: github.event.pull_request @@ -83,9 +85,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + fetch-tags: true - name: Checkout GitHub merge if: github.event.pull_request @@ -121,9 +124,10 @@ jobs: - { java-version: 11, scala-version: 3.3, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' } steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + fetch-tags: true - name: Checkout GitHub merge if: github.event.pull_request @@ -153,9 +157,10 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + fetch-tags: true - name: Checkout GitHub merge if: github.event.pull_request @@ -184,9 +189,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + fetch-tags: true - name: Checkout GitHub merge if: github.event.pull_request diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 16f35978..163b3ed5 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout current branch (full) - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 persist-credentials: false diff --git a/.github/workflows/headers.yml b/.github/workflows/headers.yml index 2559d2e9..036dfb5a 100644 --- a/.github/workflows/headers.yml +++ b/.github/workflows/headers.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Java 11 uses: actions/setup-java@v3 diff --git a/.github/workflows/link-validator.yml b/.github/workflows/link-validator.yml index c9f92c55..fa64a20a 100644 --- a/.github/workflows/link-validator.yml +++ b/.github/workflows/link-validator.yml @@ -13,15 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - # See https://github.com/actions/checkout/issues/299#issuecomment-677674415 - ref: ${{ github.event.pull_request.head.sha }} - fetch-depth: 100 - - # temporarily disable git tag fetch (it fails because there are no tags) - #- name: Fetch tags - # run: git fetch --depth=100 origin +refs/tags/*:refs/tags/* + fetch-depth: 0 + fetch-tags: true - name: Setup Java 8 uses: actions/setup-java@v3 diff --git a/.github/workflows/publish-1.0-docs.yml b/.github/workflows/publish-1.0-docs.yml index 5cce4b59..97192551 100644 --- a/.github/workflows/publish-1.0-docs.yml +++ b/.github/workflows/publish-1.0-docs.yml @@ -10,9 +10,10 @@ jobs: if: github.repository == 'apache/incubator-pekko-connectors-kafka' steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + fetch-tags: true - name: Setup Java 8 uses: actions/setup-java@v3 diff --git a/.github/workflows/publish-nightly.yml b/.github/workflows/publish-nightly.yml index 71f472ca..b5a1838a 100644 --- a/.github/workflows/publish-nightly.yml +++ b/.github/workflows/publish-nightly.yml @@ -32,9 +32,10 @@ jobs: if: github.repository == 'apache/incubator-pekko-connectors-kafka' steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + fetch-tags: true - name: Setup Java 8 uses: actions/setup-java@v3