Handle the requirement for the bundle in main.tf files #189
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: mirror-update-warning | |
on: push | |
jobs: | |
Check-changed-files: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get Changed Files | |
id: get_file_changes | |
uses: trilom/[email protected] | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
plaintext: true | |
- name: RESULTS | |
run: | | |
for directory in ${{ steps.get_file_changes.outputs.files }} | |
do | |
if [ ${directory} == "backend_modules/libvirt/base/main.tf" ] | |
then | |
echo "IMAGES_CHANGED=true" >> $GITHUB_ENV | |
fi | |
done | |
- name: PR Comment | |
if: env.IMAGES_CHANGED == 'true' | |
uses: peter-evans/commit-comment@v1 | |
with: | |
body: | | |
Before merging this PR, keep in mind we must have updated CI and BV Mirror YAML files. | |
Thank you for your collaboration. |