Skip to content

The "migrate local to $/" should raise a warning or refuse to migrate when a custom head is passed to checkout. #112

Description

@jessehouwing

Just upgraded to the lastest CLI for actions-lock and got a "automatically migrated "./" to "$/", but my workflow has a checkout step that provides a ref as input. This changes the behavior of the job...

     - uses: actions/checkout@v7.0.1
        with:
          # BELOW IS THE OFFENDING LINE
          ref: ${{ inputs.ref || github.ref }}[4:02 PM]      - id: query
        name: Query next patch version
        continue-on-error: true
        uses: $/
        with:
          operation: query-version
          auth-type: ${{ matrix.auth-type }}
          token: ${{ matrix.auth-type == 'pat' && steps.azure-devops-token.outputs.token || '' }}
          publisher-id: ${{ env.PUBLISHER_ID }}
          extension-id: ${{ env.EXTENSION_ID }}
          version-source: |
            manifest
            marketplace
            1.0.0
          marketplace-version-action: Patch

This workflow is explicitly testing the version at that ref, while the workfow is called from main...

As far as I can tell I can't run a job at a specific ref other than the one the workflow was called from...

I may have to redesign the workflow to trigger a new workflow and wait for the result instead of using workflow_call. I haven't figured out yet how to make this behave exactly as you'd expect.

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