feat: add initial Mainsail documentation (#266) #252
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: File Changes | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Test changed-files | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/[email protected] | |
with: | |
files: | | |
*.md.blade.php | |
- name: List all added files | |
run: | | |
for file in "${{ steps.changed-files.outputs.added_files }}"; do | |
echo "$file was added" | |
done | |
- name: List all renamed files | |
run: | | |
for file in "${{ steps.changed-files.outputs.renamed_files }}"; do | |
echo "$file was renamed" | |
done | |
- name: List all deleted files | |
run: | | |
for file in "${{ steps.changed-files.outputs.deleted_files }}"; do | |
echo "$file was deleted" | |
done | |
- name: Added Files | |
uses: peter-evans/create-or-update-comment@v1 | |
if: ${{ steps.changed-files.outputs.added_files }} | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
**Added Files** | |
``` | |
${{ steps.changed-files.outputs.added_files }} | |
``` | |
- name: Renamed Files | |
uses: peter-evans/create-or-update-comment@v1 | |
if: ${{ steps.changed-files.outputs.renamed_files }} | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
**Renamed Files** | |
``` | |
${{ steps.changed-files.outputs.renamed_files }} | |
``` | |
- name: Deleted Files | |
uses: peter-evans/create-or-update-comment@v1 | |
if: ${{ steps.changed-files.outputs.deleted_files }} | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
**Deleted Files** | |
``` | |
${{ steps.changed-files.outputs.deleted_files }} | |
``` |