Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test email #79

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 6 additions & 17 deletions .github/workflows/notify-pre-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,17 @@ permissions:
contents: read
actions: write
on:
pull_request_target:
types: [opened]
push:
branches:
- test

jobs:
DispatchNotifications:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get status changes and hipnames then dispatch jobs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
arrayOfFiles=()
while IFS= read -r; do
arrayOfFiles+=("${REPLY}")
done < <(git diff ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} -G'status: Draft' --name-only | grep .md)

for ((i=0; i<${#arrayOfFiles[@]}; i++)); do
echo "Initiating email for HIPs in Draft"
gh workflow run send-email.yml -f "filename=$(basename ${arrayOfFiles[$i]} .md)" -f "status=Draft"
done
run: gh workflow run send-email.yml -f "filename=hip-25" -f "status=Draft"


2 changes: 1 addition & 1 deletion .github/workflows/send-email.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
username: [email protected]
password: ${{secrets.GOOGLE_APP_PASS}}
subject: ${{ github.event.inputs.filename }} moved into ${{ github.event.inputs.status }}
to: ${{ github.event.inputs.status == 'Draft' && '[email protected]' || '[email protected]' }}
to: [email protected]
from: The HIPs repository
body: This is an automated message, please do not reply. Check https://github.com/hashgraph/hedera-improvement-proposal for more info. Thank you.
secure: true
Expand Down
2 changes: 1 addition & 1 deletion hip-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ needs-council-approval: Yes
status: Review
created: 2022-21-02
discussions-to: https://github.com/hashgraph/hedera-improvement-proposal/discussions/54
updated: 2021-10-27, 2022-05-18
updated: 2021-10-27, 2022-05-18, 2023-02-09
---

## What is a HIP?
Expand Down