Skip to content

Merge pull request #17 from newrelic/NR-355258 #14

Merge pull request #17 from newrelic/NR-355258

Merge pull request #17 from newrelic/NR-355258 #14

Workflow file for this run

name: Build and Deploy AWS Unified Firehose
on:
push:
branches:
- hr_temp
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check if version.cfg is updated
run: |
if ! git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q "version.cfg"; then
echo "Error: version.cfg must be updated in this pull request."
exit 1
fi
- name: Update Instrumentation Version
run: |
version=$(grep 'instrumentation_version' version.cfg | cut -d '=' -f2)
sed -i "s/{{INSTRUMENTATION_VERSION}}/$version/" firehose-template.yaml