Skip to content

weekly_office_hours #17

weekly_office_hours

weekly_office_hours #17

#/
# @license Apache-2.0
#
# Copyright (c) 2026 The Stdlib Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#/
# Workflow name:
name: weekly_office_hours
# Workflow triggers:
on:
# Run this workflow weekly after Tuesday's office hours session:
schedule:
# cron: '<minutes> <hours> <day_of_month> <month> <day_of_week>'
- cron: '30 17 * * 2'
# Allow the workflow to be manually run:
workflow_dispatch:
# Global permissions:
permissions:
# Allow read-only access to the repository contents:
contents: read
# Allow write access to issues:
issues: write
# Workflow jobs:
jobs:
# Define a job for creating a weekly office hours issue...
weekly_office_hours:
# Define a display name:
name: 'Weekly Office Hours'
# Define the type of virtual host machine on which to run the job:
runs-on: ubuntu-latest
# Define the sequence of job steps...
steps:
# Checkout the repository:
- name: 'Checkout repository'
# Pin action to full length commit SHA
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0
timeout-minutes: 10
# Generate the issue body with computed dates and timezone conversions:
- name: 'Generate office hours issue body'
id: generate
run: python .github/workflows/scripts/weekly_office_hours/run
timeout-minutes: 5
# Create an issue:
- name: 'Create issue'
# Pin action to full length commit SHA
uses: peter-evans/create-issue-from-file@d60bea1e77c1b5c523216f7c31493883d76ffad7 # v4.0.1
timeout-minutes: 5
with:
title: Office Hours (${{ steps.generate.outputs.meeting_date }})
content-filepath: ./office_hours_body.md
labels: |
Office Hours