External File Updates #49
This file contains hidden or 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: External File Updates | |
| on: | |
| schedule: | |
| - cron: "0 2 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| monitor: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - id: check-changes | |
| run: .github/scripts/check_external_files.sh | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - if: steps.check-changes.outputs.changes == 'true' | |
| run: .github/scripts/update_commit_hashes.sh | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - if: steps.check-changes.outputs.changes == 'true' | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: "chore(deps): update external file commit hashes" | |
| title: "chore(deps): update external file commit hashes" | |
| body: | | |
| This PR contains the following updates: | |
| ${{ env.CHANGES_REPORT }} | |
| --- | |
| ### ✅ What This PR Does: | |
| - **Automatically updates** all commit hash comments to match the latest commit of the external files. | |
| - **Ready to merge** after you review the external changes. | |
| ### 📋 Action Required: | |
| 1. **Review the diffs** to understand what changed. | |
| 2. **Update your Ansible templates** if the external file structure changed significantly. | |
| 3. **Merge this PR** once you're satisfied with the changes. | |
| branch: external-file-updates | |
| labels: | | |
| dependencies | |
| external files | |
| delete-branch: true | |
| reviewers: Nitestack |