Skip to content

Commit

Permalink
Revert to original
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed Jan 29, 2025
1 parent f9631a1 commit d6f86db
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/lambda_release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Lambda Release

on:
push:
branches:
- main
workflow_dispatch:
workflow_run:
workflows: ["Release"]
types:
- completed

jobs:
release:
Expand All @@ -21,18 +21,11 @@ jobs:
with:
ruby-version: 3.4

- name: Build newrelic_rpm gem
run: gem build newrelic_rpm.gemspec

- name: Determine version
run: |
echo "VERSION=$(ls newrelic_rpm-*.gem | ruby -pe 'sub(/newrelic_rpm\-(.*).gem/, "\\1")')" >> $GITHUB_ENV
- name: Create release tags for Lambda and K8s Init Containers
run: |
RELEASE_TITLE="New Relic Ruby Agent ${{ env.VERSION }}.0"
RELEASE_TAG="${{ env.VERSION }}.0_ruby"
RELEASE_NOTES="Automated release for [Ruby Agent ${{ env.VERSION }}](https://github.com/newrelic/newrelic-ruby-agent/releases/tag/${{ env.VERSION }})"
RELEASE_TITLE="New Relic Ruby Agent ${GITHUB_REF}.0"
RELEASE_TAG="${GITHUB_REF}.0_ruby"
RELEASE_NOTES="Automated release for [Ruby Agent ${GITHUB_REF}](https://github.com/newrelic/newrelic-ruby-agent/releases/tag/${GITHUB_REF})"
gh auth login --with-token <<< $GH_RELEASE_TOKEN
echo "newrelic/newrelic-lambda-layers - Releasing ${RELEASE_TITLE} with tag ${RELEASE_TAG}"
gh release create "${RELEASE_TAG}" --title=${RELEASE_TITLE} --repo=newrelic/newrelic-lambda-layers --notes=${RELEASE_NOTES}
Expand Down

0 comments on commit d6f86db

Please sign in to comment.