chore: Update agent schema version #25
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: test-action-workflow.yml | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| branches: [ 'mvick/test-action' ] | |
| jobs: | |
| setup-test-tag: | |
| name: Setup Test Tag | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout action repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Push temporary tag for testing | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "github-actions@github.com" | |
| git tag -f v0.0.0 HEAD | |
| git push -f origin v0.0.0 | |
| test-agent-metadata-action: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Run action | |
| uses: newrelic/agent-metadata-action@v0.0.14 | |
| with: | |
| newrelic-client-id: ${{ secrets.FC_SYS_ID_CLIENT_ID }} | |
| newrelic-private-key: ${{ secrets.FC_SYS_ID_PR_KEY }} | |
| agent-type: "java" | |
| version: "0.0.0" | |
| cache: false | |
| cleanup-test-tag: | |
| name: Cleanup Test Tag | |
| runs-on: ubuntu-latest | |
| needs: [test-agent-metadata-action] | |
| if: always() | |
| steps: | |
| - name: Checkout action repository | |
| uses: actions/checkout@v4 | |
| - name: Delete temporary tag | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "github-actions@github.com" | |
| git push origin :refs/tags/v0.0.0 || true |