Skip to content

Added leaderboard

Added leaderboard #14

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 }}