-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edit Github admin teams and drop TOC review reminder (#1613)
* drop TOC review reminder Signed-off-by: Paul S. Schweigert <[email protected]> * update github teams for steering/toc Signed-off-by: Paul S. Schweigert <[email protected]> * disable wg review action Signed-off-by: Paul S. Schweigert <[email protected]> * actually disable wg review Signed-off-by: Paul S. Schweigert <[email protected]> --------- Signed-off-by: Paul S. Schweigert <[email protected]>
- Loading branch information
Showing
5 changed files
with
56 additions
and
56 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -12,48 +12,48 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: 'TOC review reminder' | ||
# name: 'TOC review reminder' | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: ## At 09:00 on Mondays | ||
- cron: 0 9 * * MON | ||
# on: | ||
# workflow_dispatch: | ||
# schedule: ## At 09:00 on Mondays | ||
# - cron: 0 9 * * MON | ||
|
||
jobs: | ||
remind: | ||
name: toc-review-reminder | ||
runs-on: 'ubuntu-latest' | ||
# jobs: | ||
# remind: | ||
# name: toc-review-reminder | ||
# runs-on: 'ubuntu-latest' | ||
|
||
steps: | ||
- name: checkout TOC-REVIEW.schedule | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: knative/community | ||
sparse-checkout: | | ||
mechanics/TOC-REVIEW.schedule | ||
sparse-checkout-cone-mode: false | ||
# steps: | ||
# - name: checkout TOC-REVIEW.schedule | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# repository: knative/community | ||
# sparse-checkout: | | ||
# mechanics/TOC-REVIEW.schedule | ||
# sparse-checkout-cone-mode: false | ||
|
||
- name: check who is scheduled this week | ||
id: schedule | ||
run: | | ||
SLACK_MSG="NONE" | ||
SCHED=$(cat mechanics/TOC-REVIEW.schedule | grep $(date --date="next wednesday" +%F) || true) | ||
if [[ $SCHED ]]; then | ||
DATE=$(echo $SCHED | cut -d '|' -f 1 | xargs) | ||
WG=$(echo $SCHED | cut -d '|' -f 2 | xargs) | ||
MEMBERS=$(echo $SCHED | cut -d '|' -f 3 | xargs) | ||
SLACK_MSG="The $WG is up for TOC review on $DATE. $MEMBERS" | ||
fi | ||
echo "result=${SLACK_MSG}" >> "$GITHUB_OUTPUT" | ||
# - name: check who is scheduled this week | ||
# id: schedule | ||
# run: | | ||
# SLACK_MSG="NONE" | ||
# SCHED=$(cat mechanics/TOC-REVIEW.schedule | grep $(date --date="next wednesday" +%F) || true) | ||
# if [[ $SCHED ]]; then | ||
# DATE=$(echo $SCHED | cut -d '|' -f 1 | xargs) | ||
# WG=$(echo $SCHED | cut -d '|' -f 2 | xargs) | ||
# MEMBERS=$(echo $SCHED | cut -d '|' -f 3 | xargs) | ||
# SLACK_MSG="The $WG is up for TOC review on $DATE. $MEMBERS" | ||
# fi | ||
# echo "result=${SLACK_MSG}" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Post reminder to Slack | ||
if: steps.schedule.outputs.result != 'NONE' | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_ICON: http://github.com/knative.png?size=48 | ||
SLACK_USERNAME: github-actions | ||
SLACK_TITLE: TOC review reminder | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
MSG_MINIMAL: 'true' | ||
SLACK_CHANNEL: 'knative-contributors' | ||
SLACK_MESSAGE: ${{ steps.schedule.outputs.result }} | ||
# - name: Post reminder to Slack | ||
# if: steps.schedule.outputs.result != 'NONE' | ||
# uses: rtCamp/[email protected] | ||
# env: | ||
# SLACK_ICON: http://github.com/knative.png?size=48 | ||
# SLACK_USERNAME: github-actions | ||
# SLACK_TITLE: TOC review reminder | ||
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
# MSG_MINIMAL: 'true' | ||
# SLACK_CHANNEL: 'knative-contributors' | ||
# SLACK_MESSAGE: ${{ steps.schedule.outputs.result }} |
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
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
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
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