2 project setup #11
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: Create Pull Request | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
create_pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.COMMIT_TOKEN }} | |
- name: Read file content | |
run: | | |
file_content=$(cat package.json) # Replace with your file path | |
echo "Content of the file:" | |
echo "$file_content" | |
# - name: Make changes | |
# run: | | |
# echo "Updated content" > file.txt # Replace with your file path | |
# git config --global user.email "[email protected]" | |
# git config --global user.name "vishalkumar-activelabs" | |
# # git pull origin main | |
# git add . | |
# git commit -m "Update app.js" | |
# git status | |
# git push |