Skip to content

Using custom version generated from a previous step shows a warning #33

@kareemaljabr

Description

@kareemaljabr

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/[email protected]
      - uses: ButlerLogic/[email protected]
        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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions