I'm using this action like the following, which is the custom version way.
name: Create Tag
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Maven Version
id: get-version
uses: JActions/maven-version@v1.1.0
- uses: ButlerLogic/action-autotag@1.1.1
env:
GITHUB_TOKEN: "${{ github.token }}"
with:
version: "v${{ steps.get-version.outputs.version }}"
So I am reading a version from get-version step which reads it from a pom.xml file. I'm getting errors and a tag is not generated.
Warning:
Attempting to use package version extraction strategy.
Warning:
package.json does not exist at /github/workspace/package.json.
Warning:
Error: package.json does not exist at /github/workspace/package.json. at new Package (file:///app/lib/package.js:13:13) at run (file:///app/main.js:33:20) at file:///app/main.js:89:1 at ModuleJob.run (internal/modules/esm/module_job.js:110:37) at async Loader.import (internal/modules/esm/loader.js:179:24)
I'm using this action like the following, which is the custom version way.
So I am reading a version from get-version step which reads it from a pom.xml file. I'm getting errors and a tag is not generated.
Warning:
Attempting to use package version extraction strategy.
Warning:
package.json does not exist at /github/workspace/package.json.
Warning:
Error: package.json does not exist at /github/workspace/package.json. at new Package (file:///app/lib/package.js:13:13) at run (file:///app/main.js:33:20) at file:///app/main.js:89:1 at ModuleJob.run (internal/modules/esm/module_job.js:110:37) at async Loader.import (internal/modules/esm/loader.js:179:24)