You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by md...@apache.org on 2023/09/06 14:55:20 UTC

[incubator-pekko-connectors] branch main updated: Use fetch tags from latest checkout action

This is an automated email from the ASF dual-hosted git repository.

mdedetrich pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-connectors.git


The following commit(s) were added to refs/heads/main by this push:
     new 83a23dbbc Use fetch tags from latest checkout action
83a23dbbc is described below

commit 83a23dbbc6953e62dbd847b1dfb3ca87a0e72f96
Author: Matthew de Detrich <ma...@aiven.io>
AuthorDate: Tue Sep 5 10:46:44 2023 +0200

    Use fetch tags from latest checkout action
---
 .github/workflows/check-build-test.yml            | 30 +++++++++-------------
 .github/workflows/dependency-graph.yml            |  2 +-
 .github/workflows/format.yml                      |  2 +-
 .github/workflows/headers.yml                     |  5 +++-
 .github/workflows/license-and-vulnerabilities.yml | 31 -----------------------
 .github/workflows/link-validator.yml              | 10 +++-----
 .github/workflows/publish-1.0-docs.yml            |  4 +--
 .github/workflows/publish-nightly.yml             |  4 +--
 8 files changed, 26 insertions(+), 62 deletions(-)

diff --git a/.github/workflows/check-build-test.yml b/.github/workflows/check-build-test.yml
index 52c5fd767..08439667a 100644
--- a/.github/workflows/check-build-test.yml
+++ b/.github/workflows/check-build-test.yml
@@ -23,13 +23,10 @@ jobs:
 
     steps:
       - name: Checkout
-        uses: actions/checkout@v3
-      # temporarily do full checkout
-      #  with: # https://github.com/olafurpg/setup-scala#faster-checkout-of-big-repos
-      #    fetch-depth: 100
-
-      #- name: Fetch tags
-      #  run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
+        uses: actions/checkout@v4
+        with:
+          fetch-tags: true
+          fetch-depth: 0
 
       - name: Setup Java 8
         uses: actions/setup-java@v3
@@ -52,13 +49,10 @@ jobs:
 
     steps:
       - name: Checkout
-        uses: actions/checkout@v3
-      # temporarily do full checkout
-      #  with: # https://github.com/olafurpg/setup-scala#faster-checkout-of-big-repos
-      #    fetch-depth: 100
-
-      #- name: Fetch tags
-      #  run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
+        uses: actions/checkout@v4
+        with:
+          fetch-tags: true
+          fetch-depth: 0
 
       - name: Setup Java 11
         uses: actions/setup-java@v3
@@ -137,10 +131,10 @@ jobs:
 
     steps:
       - name: Checkout
-        uses: actions/checkout@v3
-      # temporarily do full checkout
-      #  with: # gh-detect-changes.sh compares with the target branch
-      #    fetch-depth: 0
+        uses: actions/checkout@v4
+        with:
+          fetch-tags: true
+          fetch-depth: 0
 
       - name: Setup Java 8
         uses: actions/setup-java@v3
diff --git a/.github/workflows/dependency-graph.yml b/.github/workflows/dependency-graph.yml
index f8facc045..e96c3efbc 100644
--- a/.github/workflows/dependency-graph.yml
+++ b/.github/workflows/dependency-graph.yml
@@ -8,5 +8,5 @@ jobs:
     name: Update Dependency Graph
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - uses: scalacenter/sbt-dependency-submission@v2
diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml
index d90635f52..2150690a6 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 6eda4f3a3..e040d34cb 100644
--- a/.github/workflows/headers.yml
+++ b/.github/workflows/headers.yml
@@ -11,7 +11,10 @@ jobs:
     runs-on: ubuntu-20.04
     steps:
       - name: Checkout
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
+        with:
+          fetch-tags: true
+          fetch-depth: 0
 
       - name: Setup Java 8
         uses: actions/setup-java@v3
diff --git a/.github/workflows/license-and-vulnerabilities.yml b/.github/workflows/license-and-vulnerabilities.yml
deleted file mode 100644
index e1d096aa5..000000000
--- a/.github/workflows/license-and-vulnerabilities.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-name: License and vulnerabilty scanning
-
-on:
-  push:
-    branches:
-      - master
-      - main
-    tags-ignore:
-      - v*
-
-jobs:
-  license-and-vulnerabilities-scanning:
-    name: Analyse
-    if: github.repository == 'apache/incubator-pekko-connectors'
-    runs-on: ubuntu-latest
-
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v3
-        with: # https://github.com/olafurpg/setup-scala#faster-checkout-of-big-repos
-          fetch-depth: 100
-      - name: Fetch tags
-        run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
-      #- name: FOSSA policy check
-      #  if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'apache/incubator-pekko-connectors' }}
-      #  run: |-
-      #    curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/spectrometer/master/install.sh | bash
-      #    fossa analyze && fossa test
-      #  env:
-      #    # The FOSSA_API_KEY is configured on Akka organisation level
-      #    FOSSA_API_KEY: "${{secrets.FOSSA_API_KEY}}"
diff --git a/.github/workflows/link-validator.yml b/.github/workflows/link-validator.yml
index 2599456bf..4bf4e7230 100644
--- a/.github/workflows/link-validator.yml
+++ b/.github/workflows/link-validator.yml
@@ -10,12 +10,10 @@ jobs:
     runs-on: ubuntu-22.04
     steps:
       - name: Checkout
-        uses: actions/checkout@v3
-        with: # https://github.com/olafurpg/setup-scala#faster-checkout-of-big-repos
-          fetch-depth: 100
-
-      - name: Fetch tags
-        run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
+        uses: actions/checkout@v4
+        with:
+          fetch-tags: true
+          fetch-depth: 0
 
       - name: Setup Java 11
         uses: actions/setup-java@v3
diff --git a/.github/workflows/publish-1.0-docs.yml b/.github/workflows/publish-1.0-docs.yml
index 583304679..c4b449302 100644
--- a/.github/workflows/publish-1.0-docs.yml
+++ b/.github/workflows/publish-1.0-docs.yml
@@ -13,9 +13,9 @@ jobs:
       JAVA_OPTS: -Xms2G -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
     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-tags: true
           fetch-depth: 0
 
       - name: Setup Java 8
diff --git a/.github/workflows/publish-nightly.yml b/.github/workflows/publish-nightly.yml
index 23b6072e5..a7f0a2dc3 100644
--- a/.github/workflows/publish-nightly.yml
+++ b/.github/workflows/publish-nightly.yml
@@ -15,9 +15,9 @@ jobs:
       JAVA_OPTS: -Xms2G -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
     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-tags: true
           fetch-depth: 0
 
       - name: Setup Java 8


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org