-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
4 changed files
with
110 additions
and
81 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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 |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Carols Issue | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
carols_issue: | ||
if: ${{ contains(github.event.issue.title, 'restruct')}} | ||
permissions: | ||
contents: read | ||
issues: write | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
OWNER: ${{ github.repository_owner }} | ||
REPO: ${{ github.event.repository.name }} | ||
EVENT: ${{ github.event.issue.number }} # This is either the issue or pr | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Carol comments | ||
run: | | ||
git config --global user.name 'Carol[bot]' | ||
git config --global user.email 'Carol[bot]@wonderland.com' | ||
echo -e "**Carol** wants create a dedicated list for the done and add:\n\n- drone\n- extra battery\n- camera\n- spare rotors" > msg | ||
export msg=$(cat msg); gh issue comment ${{ env.EVENT }} --body "$msg" --repo ${{ env.OWNER }}/${{ env.REPO }} |
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