build(deps): bump the actions group across 1 directory with 4 updates… #17
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Release Ruby Lambda Layer" | |
| on: | |
| # (Using tag push instead of release to allow filtering by tag prefix.) | |
| push: | |
| tags: | |
| - layer-ruby/** | |
| permissions: | |
| contents: read | |
| jobs: | |
| create-release: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| - name: Create Release | |
| run: gh release create ${{ github.ref_name }} --draft --title ${{ github.ref_name }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| build-layer: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| needs: create-release | |
| outputs: | |
| RUBY_SDK_VERSION: ${{ steps.save-ruby-sdk-version.outputs.RUBY_SDK_VERSION}} | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| - name: Build | |
| run: | | |
| ./build.sh | |
| shell: bash | |
| working-directory: ruby/src | |
| - name: Save Ruby SDK Version | |
| id: save-ruby-sdk-version | |
| run: | | |
| unzip -q build/opentelemetry-ruby-layer.zip | |
| export GEM_PATH=$PWD/ruby/gems/3.2.0/ | |
| RUBY_SDK_VERSION=$(ruby -e 'require "opentelemetry-sdk"; puts OpenTelemetry::SDK::VERSION') | |
| echo "RUBY_SDK_VERSION=$RUBY_SDK_VERSION" >> $GITHUB_OUTPUT | |
| working-directory: ruby/src | |
| - name: Show directory contents | |
| run: | | |
| ls -al | |
| working-directory: ruby/src/build | |
| - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| name: Save assembled layer to build | |
| with: | |
| name: opentelemetry-ruby-layer.zip | |
| path: ruby/src/build/opentelemetry-ruby-layer.zip | |
| - name: Add Binary to Release | |
| run: | | |
| gh release upload ${{github.ref_name}} ruby/src/build/opentelemetry-ruby-layer.zip | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| publish-layer: | |
| permissions: # required by the reusable workflow | |
| contents: read | |
| id-token: write | |
| uses: ./.github/workflows/layer-publish.yml | |
| needs: build-layer | |
| strategy: | |
| matrix: | |
| aws_region: | |
| - ap-northeast-1 | |
| - ap-northeast-2 | |
| - ap-south-1 | |
| - ap-southeast-1 | |
| - ap-southeast-2 | |
| - ca-central-1 | |
| - eu-central-1 | |
| - eu-north-1 | |
| - eu-west-1 | |
| - eu-west-2 | |
| - eu-west-3 | |
| - sa-east-1 | |
| - us-east-1 | |
| - us-east-2 | |
| - us-west-1 | |
| - us-west-2 | |
| with: | |
| artifact-name: opentelemetry-ruby-layer.zip | |
| layer-name: opentelemetry-ruby | |
| component-version: ${{needs.build-layer.outputs.RUBY_SDK_VERSION}} | |
| runtimes: ruby3.2 ruby3.3 ruby3.4 | |
| release-group: prod | |
| aws_region: ${{ matrix.aws_region }} | |
| secrets: inherit |