Skip to content
Closed
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
30 changes: 30 additions & 0 deletions .github/workflows/oscar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: OSCAR

on:
pull_request:
types:
- opened

jobs:
add_award:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Modify awards.csv
run: echo "${{ github.actor }},pr,#${{github.event.pull_request.number}},,,,," >> awards.csv

- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add updated-file.txt
git commit -m "Auto-update file on PR open"
git push origin HEAD:${{ github.event.pull_request.head.ref }}