Merge pull request #17 from newrelic/NR-355258 #14
Workflow file for this run
This file contains 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: 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 |