Skip to content

Commit

Permalink
debug checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiShandy committed Feb 11, 2025
1 parent 5af61f4 commit 9030494
Showing 1 changed file with 30 additions and 0 deletions.
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 }}

0 comments on commit 9030494

Please sign in to comment.