diff --git a/.github/workflows/build_for_github_package.yml b/.github/workflows/build_for_github_package.yml index 5db5afc8..541d8c02 100644 --- a/.github/workflows/build_for_github_package.yml +++ b/.github/workflows/build_for_github_package.yml @@ -40,7 +40,9 @@ jobs: - name: Build gem and publish to github package id: gemstep run: | - mkdir ~/.gem + cd ~ + [ -d '.gem' ] || mkdir .gem && echo "Directory created or already exists." + cd - echo -e "---\n:github: Bearer $GITHUB_SECRET_TOKEN" >> ~/.gem/credentials chmod 0600 ~/.gem/credentials bundle exec rake build_gem_for_github_package[${{ steps.version.outputs.gem_version }}] diff --git a/.github/workflows/test_on_4_linux.yml b/.github/workflows/test_on_4_linux.yml index 7c691f16..bbd7c116 100644 --- a/.github/workflows/test_on_4_linux.yml +++ b/.github/workflows/test_on_4_linux.yml @@ -88,7 +88,13 @@ jobs: options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 steps: + - name: Checkout ${{ github.ref }} + if: ${{ matrix.os == 'amzlinux' }} + uses: actions/checkout@v3 + + - name: Checkout ${{ github.ref }} + if: ${{ matrix.os != 'amzlinux' }} uses: actions/checkout@v4 - name: print some info