name: Update Repo Version Workflow on: workflow_call: inputs: branch: description: "Branch getting released. (branch 'release' might update a different image)" default: main required: false type: string image: description: "Name of the image" required: true type: string tag: description: "Tag of the image" required: true type: string env: REPO: ${{ github.repository }} jobs: npm-push: runs-on: ubuntu-22.04 permissions: # Give the default GITHUB_TOKEN write permission to commit and push the # added or changed files to the repository. contents: write steps: - uses: actions/checkout@v4 - name: Increment package version and push env: GITHUB_TOKEN: ${{ github.token }} run: | pwd; ls -al; echo ./drone/repo_to_cs.sh -m ${{ inputs.image }} -t ${{ inputs.tag }} -b ${{ inputs.branch }} # git push origin main # git push --tags origin main