Add Monthly Meet #11
This file contains hidden or 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
| # GitHub Actions Virtual Environments | |
| # https://github.com/actions/virtual-environments/ | |
| name: Add Monthly Meet | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| year: | |
| description: 'Year (YYYY)' | |
| type: string | |
| required: true | |
| default: '2025' | |
| month: | |
| description: 'Month (MM)' | |
| type: string | |
| required: true | |
| day: | |
| description: 'Day (DD)' | |
| type: string | |
| required: true | |
| location: | |
| description: 'Location' | |
| type: string | |
| required: true | |
| default: 'Denver, CO' | |
| jobs: | |
| main: | |
| name: Update Events | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ruby versions | |
| run: | | |
| ruby --version | |
| gem --version | |
| - name: git checkout | |
| uses: actions/checkout@v4 | |
| # https://github.com/ruby/setup-ruby | |
| - name: ruby setup | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| - name: verify inputs | |
| run: | | |
| echo "Date: ${{ inputs.year }}-${{ inputs.month }}-${{ inputs.day }}" | |
| echo "Location: ${{ inputs.location }}" | |
| - name: edit events.yml | |
| run: make monthly-meet date="${{ inputs.year }}-${{ inputs.month }}-${{ inputs.day }}" loc="${{ inputs.location }}" | |
| # https://github.com/peter-evans/create-pull-request | |
| - name: create pull request | |
| id: cpr | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| token: ${{ secrets.PAT_HAL_CODEBOT }} | |
| commit-message: "[automated] Add monthly meet ${{ inputs.year }}-${{ inputs.month }}-${{ inputs.day }}" | |
| title: "[automated] Add monthly meet ${{ inputs.year }}-${{ inputs.month }}-${{ inputs.day }}" | |
| body: "Added: **${{ inputs.year }}-${{ inputs.month }}-${{ inputs.day }}** in _${{ inputs.location }}_" | |
| branch: automated/update-events | |
| delete-branch: true | |
| reviewers: jessesquires, aebelenkiy | |
| - name: enable automerge | |
| if: steps.cpr.outputs.pull-request-operation == 'created' | |
| run: gh pr merge --squash --auto "${{ steps.cpr.outputs.pull-request-number }}" | |
| env: | |
| GH_TOKEN: ${{ secrets.PAT_HAL_CODEBOT }} |