From 4e6013043def9bcb0a38ab90a45f039c5c728d12 Mon Sep 17 00:00:00 2001 From: Bassem Dghaidi <568794+Link-@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:13:41 +0200 Subject: [PATCH] Add releaseNewActionVersion environment gate to prevent accidental releases --- .github/workflows/publish-immutable-actions.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish-immutable-actions.yml b/.github/workflows/publish-immutable-actions.yml index 87c0207..89c4273 100644 --- a/.github/workflows/publish-immutable-actions.yml +++ b/.github/workflows/publish-immutable-actions.yml @@ -6,6 +6,8 @@ on: jobs: publish: + environment: + name: releaseNewActionVersion runs-on: ubuntu-latest permissions: contents: read @@ -15,6 +17,7 @@ jobs: steps: - name: Checking out uses: actions/checkout@v4 + - name: Publish id: publish uses: actions/publish-immutable-action@0.0.3