mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-02 01:03:28 +02:00
Correct removed comment job in deploy workflow
This commit is contained in:
parent
17274a606d
commit
f2fd764d67
2 changed files with 17 additions and 17 deletions
|
@ -71,20 +71,4 @@ jobs:
|
||||||
cf_org: cisa-dotgov
|
cf_org: cisa-dotgov
|
||||||
cf_space: ${{ env.ENVIRONMENT }}
|
cf_space: ${{ env.ENVIRONMENT }}
|
||||||
cf_manifest: ops/manifests/manifest-${{ env.ENVIRONMENT }}.yaml
|
cf_manifest: ops/manifests/manifest-${{ env.ENVIRONMENT }}.yaml
|
||||||
comment:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [deploy]
|
|
||||||
steps:
|
|
||||||
- uses: actions/github-script@v6
|
|
||||||
env:
|
|
||||||
ENVIRONMENT: ${{ github.event.inputs.environment }}
|
|
||||||
with:
|
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
script: |
|
|
||||||
github.rest.issues.createComment({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
body: '🥳 Successfully deployed to developer sandbox **[${{ env.ENVIRONMENT }}](https://getgov-${{ env.ENVIRONMENT }}.app.cloud.gov/)**.'
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
18
.github/workflows/deploy-sandbox.yaml
vendored
18
.github/workflows/deploy-sandbox.yaml
vendored
|
@ -64,4 +64,20 @@ jobs:
|
||||||
cf_password: ${{ secrets[env.CF_PASSWORD] }}
|
cf_password: ${{ secrets[env.CF_PASSWORD] }}
|
||||||
cf_org: cisa-dotgov
|
cf_org: cisa-dotgov
|
||||||
cf_space: ${{ env.ENVIRONMENT }}
|
cf_space: ${{ env.ENVIRONMENT }}
|
||||||
cf_manifest: ops/manifests/manifest-${{ env.ENVIRONMENT }}.yaml
|
cf_manifest: ops/manifests/manifest-${{ env.ENVIRONMENT }}.yaml
|
||||||
|
comment:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [variables, deploy]
|
||||||
|
steps:
|
||||||
|
- uses: actions/github-script@v6
|
||||||
|
env:
|
||||||
|
ENVIRONMENT: ${{ needs.variables.outputs.environment }}
|
||||||
|
with:
|
||||||
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
script: |
|
||||||
|
github.rest.issues.createComment({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
body: '🥳 Successfully deployed to developer sandbox **[${{ env.ENVIRONMENT }}](https://getgov-${{ env.ENVIRONMENT }}.app.cloud.gov/)**.'
|
||||||
|
})
|
Loading…
Add table
Add a link
Reference in a new issue