Multi tiers upgrade feature - Base PR #7942
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: Rebuild Licence data file | |
on: | |
push: | |
branches: [ trunk, develop ] | |
pull_request: | |
branches: [ trunk, develop ] | |
jobs: | |
licence: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Find file | |
run: find ./licence-data.php | |
id: find | |
continue-on-error: true | |
- name: Add a file | |
if: ${{ steps.find.outcome == 'failure' }} | |
run: git checkout origin/trunk licence-data.php | |
id: add | |
- name: Commit the missing file | |
if: ${{ steps.add.outcome == 'success' }} | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Adds missing licence-data.php file | |
commit_user_name: WP-media GitHub Actions Bot |