From ec93639d88a1585c400828b9e23a57572a6c8b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Kuchenbecker?= Date: Tue, 6 Aug 2024 15:35:21 +0200 Subject: [PATCH] Enable turning the initial checkout step off --- action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action.yml b/action.yml index db7d8e4..94106c0 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,10 @@ name: "GHGA CI action tasks" description: "Tasks that are executed in our CI pipeline for GHGA microservices" inputs: + checkout: + description: "Checkout the repository" + required: false + default: "true" dockerhub_username: description: "The DockerHub username" required: true @@ -48,6 +52,7 @@ runs: steps: - uses: actions/checkout@v4 name: Check out code + if: ${{ inputs.checkout == 'true' }} - if: contains(fromJSON('["release"]'), github.event_name) name: Ensure that tag complies with semantic versioning.