-
Notifications
You must be signed in to change notification settings - Fork 16
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
1 parent
9ae659c
commit e5389e0
Showing
1 changed file
with
5 additions
and
12 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 |
---|---|---|
|
@@ -2,20 +2,13 @@ name: Update README with directory tree | |
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- workflow_testing | ||
branches: [workflow_testing] | ||
|
||
|
||
jobs: | ||
update-readme: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Debug | ||
run: | | ||
echo "Current directory: $(pwd)" | ||
echo "Contents of the current directory: $(ls -al)" | ||
echo "Contents of the repository after checkout: $(ls -al)" | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
|
@@ -40,10 +33,10 @@ jobs: | |
- name: Commit and push changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
git add README.md | ||
git commit -m "Update directory tree in README" || true | ||
git push | ||
# nn | ||
#code by @aayushpaigwar |