From 832376c598506ea0ae541c063f91899c57526ca2 Mon Sep 17 00:00:00 2001 From: "samber (headless)" <280763659+headless-samber@users.noreply.github.com> Date: Fri, 22 May 2026 20:33:32 +0200 Subject: [PATCH] fix(ci): fix Publish workflow startup_failure (#565) * fix(ci): fix Publish workflow startup_failure * fix(ci): fix Publish workflow startup_failure --- .github/workflows/{dist.yml => publish.yml} | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) rename .github/workflows/{dist.yml => publish.yml} (94%) diff --git a/.github/workflows/dist.yml b/.github/workflows/publish.yml similarity index 94% rename from .github/workflows/dist.yml rename to .github/workflows/publish.yml index 2495fd3..88b4caf 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/publish.yml @@ -12,7 +12,6 @@ permissions: jobs: publish: name: Publish - # Check if the PR is not from a fork if: github.repository_owner == 'samber' runs-on: ubuntu-latest steps: @@ -22,15 +21,15 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3.4 + ruby-version: '3.4' - name: Set up yq uses: mikefarah/yq@v4 - name: Install liquid run: | - gem install liquid -v 5.5.1 - gem install liquid-cli + gem install liquid -v 5.5.1 + gem install liquid-cli - name: Build rule configuration run: | @@ -43,7 +42,7 @@ jobs: mkdir -p "${subdir}" # groupName=$(echo "{% assign groupName = name | split: ' ' %}{% capture groupNameCamelcase %}{% for word in groupName %}{{ word | capitalize }} {% endfor %}{% endcapture %} {{ groupNameCamelcase | remove: ' ' | remove: '-' }}" | liquid $(echo ${service} | base64 --decode | jq -r '.name | ascii_downcase | split(" ") | join("-")')) - + for exporter in $(echo ${service} | base64 --decode | jq -r '.exporters[] | @base64'); do exporterName=$(echo ${exporter} | base64 --decode | jq -r '.slug') cat dist/template.yml | liquid "$(echo ${exporter} | base64 --decode)" > ${subdir}/${exporterName}.yml