Skip to content

Commit

Permalink
ci: Update workflows based on results of last release. (#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr authored Aug 8, 2023
1 parent f54defc commit f511aea
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy_agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ jobs:
update-apm:
name: Update System Configuration Page
runs-on: ubuntu-latest
if: ${{ github.event.inputs.update-apm-version == true }}
if: ${{ github.event.inputs.update-apm-version == 'true' }}
steps:
- name: Update system configuration page
run: |
Expand Down Expand Up @@ -373,7 +373,7 @@ jobs:
-d "$PAYLOAD"
publish-release-notes:
needs: [deploy-linux, index-download-site]
needs: [deploy-linux, deploy-nuget, index-download-site]
if: ${{ github.event.inputs.deploy == 'true' && github.event.inputs.downloadsite == 'true' && github.event.inputs.nuget == 'true' && github.event.inputs.linux == 'true' && github.event.inputs.linux-deploy-to-production == 'true' }}
name: Create and Publish Release Notes
uses: newrelic/newrelic-dotnet-agent/.github/workflows/publish_release_notes.yml@main
Expand All @@ -387,7 +387,7 @@ jobs:
issues: write
contents: read
packages: read
needs: [deploy-linux, index-download-site]
needs: [deploy-linux, deploy-nuget, index-download-site]
if: ${{ github.event.inputs.deploy == 'true' && github.event.inputs.downloadsite == 'true' && github.event.inputs.nuget == 'true' && github.event.inputs.linux == 'true' && github.event.inputs.linux-deploy-to-production == 'true' }}
name: Run Post Deploy Workflow
uses: newrelic/newrelic-dotnet-agent/.github/workflows/post_deploy_agent.yml@main
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/post_deploy_agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ on:
description: 'Agent Version to validate. Needs to match the version from the Release Workflow (all_solutions.yml). Format: X.X.X'
required: true
type: string

external_call:
type: boolean
default: true
required: false
workflow_call:
inputs:
agent_version:
Expand All @@ -34,7 +37,12 @@ jobs:
with:
disable-sudo: false
egress-policy: audit

- name: Wait for APT to update
if: ${{ inputs.external_call }}
run: |
echo "Sleeping 2 minutes to wait for apt to update itself"
sleep 120
shell: bash
- name: Validate
run: |
echo 'deb https://apt.newrelic.com/debian/ newrelic non-free' | sudo tee /etc/apt/sources.list.d/newrelic.list
Expand Down Expand Up @@ -68,6 +76,13 @@ jobs:
with:
fetch-depth: 0

- name: Wait for YUM to update
if: ${{ inputs.external_call }}
run: |
echo "Sleeping 2 minutes to wait for yum to update itself"
sleep 120
shell: bash

- name: Validate
run: |
cd deploy/validation/validate-yum
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_release_notes.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish .NET Agent Releaase Notes
name: Publish .NET Agent Release Notes

on:
workflow_dispatch:
Expand Down

0 comments on commit f511aea

Please sign in to comment.