EDM/connect comparison tool to gids lcpe (#20049) #572
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
name: Push CODEOWNERS to Platform Atlas | |
on: | |
workflow_call: | |
push: | |
branches: | |
- master | |
paths: | |
- '.github/CODEOWNERS' | |
permissions: | |
contents: read | |
checks: write | |
jobs: | |
copy-codeowners: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure AWS Credentials | |
uses: aws-actions/[email protected] | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: "us-gov-west-1" | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get bot token from Parameter Store | |
uses: department-of-veterans-affairs/action-inject-ssm-secrets@latest | |
with: | |
ssm_parameter: /devops/VA_VSP_BOT_GITHUB_TOKEN | |
env_variable_name: VA_VSP_BOT_GITHUB_TOKEN | |
- name: Check codeowner changes | |
id: check-codeowner-changes | |
uses: tj-actions/changed-files@v45 # v36.3.0 | |
with: | |
files: | | |
.github/CODEOWNERS | |
- name: Pushes CODEOWNERS updates to Atlas | |
if: steps.check-codeowner-changes.outputs.any_changed == 'true' | |
uses: dmnemec/copy_file_to_another_repo_action@main | |
env: | |
API_TOKEN_GITHUB: ${{ env.VA_VSP_BOT_GITHUB_TOKEN }} | |
with: | |
source_file: '.github/CODEOWNERS' | |
destination_repo: 'department-of-veterans-affairs/platform-atlas' | |
destination_folder: '/lib/codeowners/vets-api' | |
destination_branch: 'master' | |
user_email: '[email protected]' | |
user_name: 'va-vsp-bot' | |
commit_message: 'Auto update Atlas with Vets-API CODEOWNERS' |