Skip to content

Commit 994995c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e33d0b0 commit 994995c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/pr-sort.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
# For manually triggered workflow
4646
PR_REF="${{ github.event.inputs.pr_number }}"
4747
CONTRIBUTOR="${{ github.event.inputs.contributor }}"
48-
48+
4949
if [[ -n "$PR_REF" ]]; then
5050
echo "pr_number=$PR_REF" >> $GITHUB_OUTPUT
5151
echo "branch_name=automated-updates-$PR_REF" >> $GITHUB_OUTPUT
@@ -55,7 +55,7 @@ jobs:
5555
echo "pr_number=manual-$TIMESTAMP" >> $GITHUB_OUTPUT
5656
echo "branch_name=automated-updates-$TIMESTAMP" >> $GITHUB_OUTPUT
5757
fi
58-
58+
5959
if [[ -n "$CONTRIBUTOR" ]]; then
6060
echo "contributor=$CONTRIBUTOR" >> $GITHUB_OUTPUT
6161
else
@@ -72,7 +72,7 @@ jobs:
7272
7373
# Run sort command
7474
pixi run sort
75-
75+
7676
# Add contributor if specified
7777
if [[ -n "${{ steps.vars.outputs.contributor }}" ]]; then
7878
pixi run install
@@ -86,29 +86,29 @@ jobs:
8686
echo "has_changes=false" >> $GITHUB_OUTPUT
8787
else
8888
echo "has_changes=true" >> $GITHUB_OUTPUT
89-
89+
9090
# Stage and commit changes
9191
git config --global user.name 'github-actions[bot]'
9292
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
9393
git add _data/* .all-contributorsrc README.md CONTRIBUTING.md || true
94-
94+
9595
# Create commit message
9696
COMMIT_MSG="chore: updates"
9797
git commit -m "$COMMIT_MSG"
98-
98+
9999
# Push the branch to the remote repository
100100
git push -u origin $BRANCH_NAME
101101
fi
102102
103-
- name: Manual PR creation
103+
- name: Manual PR creation
104104
if: steps.changes.outputs.has_changes == 'true'
105105
env:
106106
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107107
BRANCH_NAME: ${{ steps.vars.outputs.branch_name }}
108108
run: |
109109
# Check if PR already exists
110110
PR_EXISTS=$(gh pr list --head $BRANCH_NAME --json number | jq 'length')
111-
111+
112112
if [[ "$PR_EXISTS" == "0" ]]; then
113113
# Create a new PR
114114
gh pr create \
@@ -118,7 +118,7 @@ jobs:
118118
Changes include:
119119
- Sorted conferences
120120
- Added contributor (if specified)
121-
121+
122122
Please review and merge these automated updates." \
123123
--base main \
124124
--head $BRANCH_NAME

0 commit comments

Comments
 (0)