feat: No docs script #1
Workflow file for this run
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
on: | |
pull_request: | |
name: Create and Commit File on Pull Request | |
jobs: | |
create-and-commit: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the repository | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
# Step 2: Create a file | |
- name: Create a New File | |
run: echo "This is a new file created by the GitHub Actions workflow." > newfile.txt | |
# Step 3: Configure Git | |
- name: Set up Git user | |
run: | | |
git config --global user.name "github-actions" | |
git config --global user.email "[email protected]" | |
# Step 4: Stage and commit the file | |
- name: Commit and Push Changes | |
run: | | |
git add newfile.txt | |
git commit -m "Automated commit: added newfile.txt" | |
git push origin HEAD:${{ github.head_ref }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |