From 68a352e4030f0f4c5ee4354a68508d5910ca8522 Mon Sep 17 00:00:00 2001 From: Jingsi Lu Date: Sun, 19 Nov 2023 11:27:37 -0500 Subject: [PATCH] refactored directory --- .github/{workflows => }/credits.md | 0 .../{update-credits.yml => update_credits.yml} | 16 ++++++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) rename .github/{workflows => }/credits.md (100%) rename .github/workflows/{update-credits.yml => update_credits.yml} (68%) diff --git a/.github/workflows/credits.md b/.github/credits.md similarity index 100% rename from .github/workflows/credits.md rename to .github/credits.md diff --git a/.github/workflows/update-credits.yml b/.github/workflows/update_credits.yml similarity index 68% rename from .github/workflows/update-credits.yml rename to .github/workflows/update_credits.yml index 2e9fdfd16d..ff216d9dba 100644 --- a/.github/workflows/update-credits.yml +++ b/.github/workflows/update_credits.yml @@ -19,18 +19,18 @@ jobs: contributor_name=$(jq -r '.pull_request.user.login' $GITHUB_EVENT_PATH) pr_description=$(jq -r '.pull_request.body' $GITHUB_EVENT_PATH) - echo "### Timestamp:" >> credits.md - echo "$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> credits.md - echo "### Contributor:" >> credits.md - echo "${{ github.event.pull_request.user.login }}" >> credits.md - echo "#### PR Title:" >> credits.md - echo "${{ github.event.pull_request.title }}" >> credits.md - echo "############################################" >> credits.md + echo "### Timestamp:" >> .github/credits.md + echo "$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> .github/credits.md + echo "### Contributor:" >> .github/credits.md + echo "${{ github.event.pull_request.user.login }}" >> .github/credits.md + echo "#### PR Title:" >> .github/credits.md + echo "${{ github.event.pull_request.title }}" >> .github/credits.md + echo "############################################" >> .github/credits.md git add credits.md git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git commit -m "Update credits.md with contributor information" || exit 0 - git push + git push origin HEAD: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file