redone part 2 #1
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: Auto Commit Blanket | |
on: | |
pull_request: | |
types: | |
- opened | |
permissions: | |
packages: read | |
contents: write | |
pull-requests: write | |
repository-projects: write | |
jobs: | |
auto-commit-on-blanket-branch: | |
if: ${{ contains(github.head_ref, 'restruct') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
- name: Adding drone to packing_list.md | |
run: | | |
echo "- [ ] drone" > Carols_drone_list.md | |
echo "- [ ] extra battery" >> Carols_drone_list.md | |
git config --global user.name 'Alice[bot]' | |
git config --global user.email 'Alice[bot]@wonderland.com' | |
git add Carols_drone_list.md | |
git commit -m "Adding Carols drone list" | |
git push origin main |