Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas committed Oct 25, 2024
1 parent 8e76b7b commit 1dcb05d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci-cd-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
uses: ./.github/workflows/workflow-get-latest-deployed-versions-from-github.yml
with:
environment: test
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


mock-deployment:
name: Mock Deployment
Expand All @@ -25,13 +28,15 @@ jobs:
name: Store Mock Versions
needs: [mock-deployment]
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Set Mock Infra Version
run: |
gh variable set LATEST_DEPLOYED_INFRA_VERSION "v1.0.0-mock" --repo ${{ github.repository }} --env test
gh variable set --env test LATEST_DEPLOYED_INFRA_VERSION "v1.0.0-mock" --repo ${{ github.repository }}
- name: Set Mock Apps Version
run: |
gh variable set LATEST_DEPLOYED_APPS_VERSION "v1.0.0-mock" --repo ${{ github.repository }} --env test
gh variable set --env test LATEST_DEPLOYED_APPS_VERSION "v1.0.0-mock" --repo ${{ github.repository }}
verify-stored-versions:
name: Verify Stored Versions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
description: "Environment to get latest deployed versions for (e.g., staging, prod, yt01)"
required: true
type: string
secrets:
GITHUB_TOKEN:
required: true
outputs:
infra_version_sha:
description: "SHA of the latest deployed infrastructure version"
Expand All @@ -19,6 +22,9 @@ jobs:
get-versions:
name: Get Latest Deployed Versions from GitHub Variables
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
infra_version_sha: ${{ steps.get-infra-sha.outputs.sha }}
apps_version_sha: ${{ steps.get-apps-sha.outputs.sha }}
Expand Down

0 comments on commit 1dcb05d

Please sign in to comment.