File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 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
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
7171
7272 # Run sort command
7373 pixi run sort
74-
74+
7575 # Add contributor if specified
7676 if [[ -n "${{ steps.vars.outputs.contributor }}" ]]; then
7777 pixi run install
@@ -89,16 +89,16 @@ jobs:
8989 git config --global user.name 'github-actions[bot]'
9090 git config --global user.email 'github-actions[bot]@users.noreply.github.com'
9191 git add _data/* .all-contributorsrc README.md CONTRIBUTING.md
92-
92+
9393 # Create commit message
9494 COMMIT_MSG="chore: updates"
9595 COMMIT_MSG="$COMMIT_MSG\n\n* Sort conferences"
9696 if [[ -n "$CONTRIBUTOR_MSG" ]]; then
9797 COMMIT_MSG="$COMMIT_MSG\n$CONTRIBUTOR_MSG"
9898 fi
99-
99+
100100 git commit -m "$COMMIT_MSG"
101-
101+
102102 # Push the branch to the remote repository
103103 git push -u origin ${{ steps.vars.outputs.branch_name }}
104104 else
You can’t perform that action at this time.
0 commit comments