Skip to content

Commit

Permalink
syncing a subset of changes from ci/revert-linux-deploy-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr committed Dec 13, 2023
1 parent 69cb679 commit b8f3998
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 52 deletions.
1 change: 0 additions & 1 deletion .github/workflows/all_solutions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,6 @@ jobs:
name: deploy-artifacts
path: |
${{ github.workspace }}\build\BuildArtifacts
${{ github.workspace }}\deploy
if-no-files-found: error

# This job is necessary in order for us to have a branch protection rule for tests with a matrix
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/deploy_agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,6 @@ jobs:
path: ${{ github.workspace }}/build/BuildArtifacts
if-no-files-found: error

# - name: Upload Deploy Tooling Locally
# uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
# with:
# name: deploy-tooling
# path: ${{ github.workspace }}/deploy/
# if-no-files-found: error

deploy-downloadsite:
needs: get-external-artifacts
if: ${{ github.event.inputs.downloadsite == 'true' }}
Expand Down Expand Up @@ -274,12 +267,6 @@ jobs:
name: deploy-artifacts
path: ${{ github.workspace }}/

# - name: Download Deploy Tooling
# uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
# with:
# name: deploy-tooling
# path: ${{ github.workspace }}/deploy

- name: Get GPG Key
id: write_gpgkey
run: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/post_deploy_agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ 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:
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

permissions:
contents: read
packages: read
Expand All @@ -37,7 +37,7 @@ jobs:
disable-sudo: false
egress-policy: audit
- name: Wait for APT to update
if: ${{ github.event.inputs.external_call }} # only wait if this workflow was called by another workflow
if: ${{ github.event.inputs.external_call == 'true' }} # only wait if this workflow was called by another workflow
run: |
echo "Sleeping 5 minutes to wait for apt to update itself"
sleep 300
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
fetch-depth: 0

- name: Wait for YUM to update
if: ${{ github.event.inputs.external_call }} # only wait if this workflow was called by another workflow
if: ${{ github.event.inputs.external_call == 'true' }} # only wait if this workflow was called by another workflow
run: |
echo "Sleeping 5 minutes to wait for yum to update itself"
sleep 300
Expand Down
38 changes: 7 additions & 31 deletions .github/workflows/publish_release_notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,7 @@ env:

jobs:

get-external-artifacts:
name: Get and Publish Deploy Artifacts Locally
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
disable-sudo: true
egress-policy: audit

- name: Download Deploy Artifacts
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e # v2.28.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: all_solutions.yml
run_id: ${{ github.event.inputs.run_id }}
name: deploy-artifacts
path: ${{ github.workspace }}
repo: ${{ github.repository }}

- name: Upload Deploy Artifacts Locally
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: deploy-artifacts
path: ${{ github.workspace }}/build/BuildArtifacts
if-no-files-found: error

publish-release-notes:
needs: get-external-artifacts
name: Create and Publish Release Notes
runs-on: ubuntu-latest
steps:
Expand All @@ -74,10 +46,14 @@ jobs:
fetch-depth: 0

- name: Download Deploy Artifacts
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e # v2.28.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: all_solutions.yml
run_id: ${{ github.event.inputs.run_id }}
name: deploy-artifacts
path: ${{ github.workspace }}/artifacts
path: ${{ github.workspace }}/deploy-artifacts
repo: ${{ github.repository }}

- name: Set Docs PR Branch Name
run: |
Expand All @@ -97,7 +73,7 @@ jobs:
BUILD_PATH: ${{ github.workspace }}/build/ReleaseNotesBuilder/ReleaseNotesBuilder.csproj
RUN_PATH: ${{ github.workspace }}/build/ReleaseNotesBuilder/bin/Release/net7.0/
CHANGELOG: ${{ github.workspace }}/src/Agent/CHANGELOG.md
CHECKSUMS: ${{ github.workspace }}/artifacts/DownloadSite/SHA256/checksums.md
CHECKSUMS: ${{ github.workspace }}/deploy-artifacts/build/BuildArtifacts/DownloadSite/SHA256/checksums.md
OUTPUT_PATH: ${{ github.workspace }}

- name: Create branch
Expand Down

0 comments on commit b8f3998

Please sign in to comment.