-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
name: Tree | ||
name: !!str Tree | ||
|
||
on: workflow_dispatch | ||
on: !!str workflow_dispatch | ||
|
||
jobs: | ||
generate-tree: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
jobs: !!map | ||
generate-tree: !!map | ||
runs-on: !!str ubuntu-latest | ||
permissions: !!map | ||
contents: !!str write | ||
|
||
steps: | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
steps: !!seq | ||
- name: !!str 'Checkout Repository' | ||
uses: !!str actions/checkout@v3 | ||
with: !!map | ||
persist-credentials: !!bool false | ||
fetch-depth: !!int 0 | ||
|
||
- name: Running script | ||
run: | | ||
- name: !!str Running script | ||
run: !!str | | ||
tree --noreport -I 'README.md|LICENSE|tree.txt' > tree.txt | ||
sed -i "15,100d" README.md | ||
echo '```' >> tree.txt | ||
cat tree.txt >> README.md | ||
|
||
- name: Showing result | ||
run: cat README.md | ||
- name: !!str Showing result | ||
run: !!str cat README.md | ||
|
||
- name: Commit files | ||
run: | | ||
- name: !!str Commit files | ||
run: !!str | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git commit -am "Update tree" | ||
|
||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
- name: !!str Push changes | ||
uses: !!str ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} | ||
github_token: !!str ${{ secrets.GITHUB_TOKEN }} | ||
branch: !!str ${{ github.ref }} |