forked from wp-media/wp-rocket
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 792 Bytes
/
licence_data.yml
File metadata and controls
34 lines (27 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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