-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,18 +64,35 @@ jobs: | |
create-overview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the existing content of thre repository | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# Create directory profile if it does not exist | ||
- name: Create profile directory | ||
run: mkdir -p profile | ||
|
||
# Run the deployment overview action | ||
- name: Deployment overview | ||
uses: prodyna/deployment-overview@v0.2 | ||
uses: prodyna/deployment-overview@v0.3 | ||
with: | ||
organization: myorg | ||
target-repository: .github | ||
target-repository-file: profile/README.md | ||
repositories: frontend,backend,infrastructure | ||
organization: prodyna-yasm | ||
repositories: yasm-backend,yasm-frontend,yasmctl,yasm-proxy-odbc,yasm-integration,yasm-geocoding,yasm-data,yasm-gotenberg | ||
environments: dev,staging,prod | ||
environment-links: https://dev.example.com,https://staging.example.com,https://www.example.com | ||
environment-links: https://dev-yasm.prodyna.com,https://staging-yasm.prodyna.com,https://yasm.prodyna.com | ||
verbose: 1 | ||
template-file: template/default.md | ||
github-token: ${{ secrets.OVERVIEW_GITHUB_TOKEN }} | ||
title: "YASM Deployment Overview" | ||
targetJsonFile: profile/deployment-overview.json | ||
targetMdFile: profile/README.md | ||
|
||
# Push the generated files | ||
- name: Commit changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Deployment Overview" | ||
git add profile | ||
git commit -m "Add/update deployment overview" | ||
``` | ||
Note that you have to use a GitHub Personal Access Token (PAT) as a secret. | ||
|