diff --git a/.github/workflows/tree.yml b/.github/workflows/tree.yml index cce5847..36ecfaf 100644 --- a/.github/workflows/tree.yml +++ b/.github/workflows/tree.yml @@ -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 }}