name: Increment version

on: [ workflow_dispatch, workflow_call ]
    
jobs:
  job_increment:
    runs-on: ubuntu-latest

    steps:

    - name: Checkout
      uses: actions/checkout@v5

    - name: Increment variable      
      uses: action-pack/increment@v2
      with:
        name: 'SharpGLTF_Version'
        token: ${{ secrets.VARIABLES_ACCESS }}

    - name: Use the incremented value
      run: |
        echo "New version code is ${{ steps.increment.outputs.new_value }}"

  