Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test removing licence data file #7216

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/licence_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Rebuild Licence data file

on:
push:
branches: [ trunk, develop ]
branches: [ trunk, develop, develop-clone ]
pull_request:
branches: [ trunk, develop ]
branches: [ trunk, develop, develop-clone ]

jobs:
licence:
Expand Down Expand Up @@ -33,10 +33,17 @@ jobs:
id: add

- name: Commit the missing file
id: commit
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

- name: Set final commit status only when we find the file at the end
if: ${{ steps.find.outcome == 'success' || (steps.find.outcome == 'failure' && steps.commit.outcome == 'success') }}
uses: myrotvorets/set-commit-status-action@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: success

Loading