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
name: Update rules status | |
on: | |
pull_request_target: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
update_and_commit: | |
name: Update and Commit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: log | |
run: | | |
echo "testing" | |
- name: Commit changes | |
run: | | |
echo "foo" > foo.txt | |
git add foo.txt | |
git config --local user.name 'Elastic Machine' | |
git config --local user.email 'elasticmachine@users.noreply.github.com' | |
git commit -m "Update rules markdown files" | |
git push origin HEAD:${{github.head_ref}} |