From 8b06c90ec579f5de0c06b0cb74454bc245dbd617 Mon Sep 17 00:00:00 2001 From: xuan-cao-swi Date: Wed, 6 Dec 2023 14:15:30 -0500 Subject: [PATCH] fix directory issue --- .github/workflows/push-package-solarwinds.yml | 5 +++-- .github/workflows/script/sw_build_and_push_gem.sh | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push-package-solarwinds.yml b/.github/workflows/push-package-solarwinds.yml index b8a18ec5b..699416f92 100644 --- a/.github/workflows/push-package-solarwinds.yml +++ b/.github/workflows/push-package-solarwinds.yml @@ -8,6 +8,7 @@ on: description: 'The name of gem you want to publish (without opentelemetry-instrumentation e.g. aws_sdk)' jobs: + # act -j build --container-architecture linux/arm64 --secret-file act.secrets build: name: Build + Publish to Github Package runs-on: ubuntu-latest @@ -30,5 +31,5 @@ jobs: - name: Build gem and publish to github package id: gemstep - run: | - ./script/sw_build_and_push_gem.sh ${{ github.event.inputs.gem_name }} + run: | + .github/workflows/script/sw_build_and_push_gem.sh ${{ github.event.inputs.gem_name }} diff --git a/.github/workflows/script/sw_build_and_push_gem.sh b/.github/workflows/script/sw_build_and_push_gem.sh index 48b287ab4..85abb32da 100755 --- a/.github/workflows/script/sw_build_and_push_gem.sh +++ b/.github/workflows/script/sw_build_and_push_gem.sh @@ -1,9 +1,11 @@ -#!/bin/bash +#!/bin/sh GEM_NAME="$1" cd "instrumentation/$GEM_NAME" || exit 1 +echo "Current directory: $PWD" + bundle install # get gem version using bash