29 lines
812 B
YAML
29 lines
812 B
YAML
|
name: extend-awards
|
||
|
run-name: Extending awards
|
||
|
on:
|
||
|
pull_request:
|
||
|
types: [ closed ]
|
||
|
branches:
|
||
|
- master
|
||
|
jobs:
|
||
|
unfiltered:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- run: echo '${{ toJson(github) }}'
|
||
|
if_merged:
|
||
|
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
- uses: actions/setup-python@v5
|
||
|
with:
|
||
|
python-version: '3.13'
|
||
|
- run: pip install requests
|
||
|
- run: python extend-awards.py '${{ toJson(github) }}'
|
||
|
env:
|
||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||
|
- uses: peter-evans/create-pull-request@v7
|
||
|
with:
|
||
|
commit-message: extending awards
|
||
|
title: Extending awards
|