diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 15caf7c..6967b4a 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -1,25 +1,29 @@ -name: new-relic-exporter - +# This is a basic workflow to help you get started with Actions +name: CI +# Controls when the workflow will run on: - workflow_run: - workflows: ['*'] - types: [completed] # defaults to run on every completed workflow run event - -env: - GHA_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NEW_RELIC_LICENSE_KEY: ${{ secrets.NEW_RELIC_LICENSE_KEY }} - GHA_RUN_ID: ${{ github.event.workflow_run.id }} - GHA_RUN_NAME: ${{ github.event.workflow_run.name }} - #GHA_CUSTOM_ATTS: '{"mycustomattributea":"test", "mycustomattributeb":10, "mycustomattributec":"My custom attribute"}' - - + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - new-relic-exporter: - name: new-relic-exporter + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on runs-on: ubuntu-latest - if: ${{ always() }} + # Steps represent a sequence of tasks that will be executed as part of the job steps: - - name: Checkout - uses: actions/checkout@v3 - - name: new-relic-exporter - uses: newrelic-experimental/gha-new-relic-exporter@latest + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project.