Skip to content

Commit

Permalink
Add yaml tag
Browse files Browse the repository at this point in the history
  • Loading branch information
manabil authored Aug 20, 2023
1 parent b8954ff commit 2f3ecf3
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/tree.yml
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 }}

0 comments on commit 2f3ecf3

Please sign in to comment.