Added leaderboard #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Increment Version | |
on: | |
workflow_call: | |
workflow_dispatch: | |
pull_request_target: | |
branches: [main] | |
types: [opened] | |
jobs: | |
increment: | |
runs-on: ubuntu-latest | |
if: | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} # We need to checkout the head branch, not the temporary merge branch | |
persist-credentials: false | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
- name: Set name | |
run: git config user.name "Gearbox Bot" | |
- name: Set email | |
run: git config user.email "[email protected]" | |
- name: Increment patch number | |
run: npm version patch | |
- name: Push changes | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GIT_PUSH_TOKEN }} | |
branch: ${{ github.head_ref }} |