From 227ab877c2fd0bb41024b40f9a816c77af8246fe Mon Sep 17 00:00:00 2001 From: Martin Malina Date: Wed, 9 Oct 2024 13:00:22 +0200 Subject: [PATCH] fix: tweak github actions (#604) * chore: update checkout action to v4 Some places were already on version 4. Move the rest as well. v3 would print this warning: The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. Signed-off-by: Martin Malina * fix: tweak Promote branch inputs When you trigger the workflow via Github UI, it will not show you the name of those inputs. It just shows checkboxes and the description next to them. So let's add the input names to the descriptions and also remove the "If set to true" part, as it doesn't make sense in the UI. Signed-off-by: Martin Malina --------- Signed-off-by: Martin Malina --- .github/workflows/promote_branch.yaml | 8 ++++---- .github/workflows/tekton_task_tests.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/promote_branch.yaml b/.github/workflows/promote_branch.yaml index 2c78bf0a2..37cdce162 100644 --- a/.github/workflows/promote_branch.yaml +++ b/.github/workflows/promote_branch.yaml @@ -13,20 +13,20 @@ on: - production force-to-staging: description: | - If passed with value true, allow promotion to staging even if staging and production differ + Force to staging: Allow promotion to staging even if staging and production differ type: boolean required: true default: false override: description: | - If passed with value true, allow promotion to production even if the change has not been in staging for one + Override: Allow promotion to production even if the change has not been in staging for one week type: boolean required: true default: false dry-run: description: | - If passed with value true, print out the changes that would be promoted but do not perform the git push + Dry run: Print out the changes that would be promoted but do not perform the git push type: boolean required: true default: false @@ -36,7 +36,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run branch promotion script run: | .github/scripts/promote_branch.sh --target-branch $TARGET --force-to-staging $FORCE \ diff --git a/.github/workflows/tekton_task_tests.yaml b/.github/workflows/tekton_task_tests.yaml index 3ec7c0562..23ca9455c 100644 --- a/.github/workflows/tekton_task_tests.yaml +++ b/.github/workflows/tekton_task_tests.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get changed dirs id: changed-dirs uses: tj-actions/changed-files@v41