Skip to content

Replace action but leave configuration as is #80

@yeikel

Description

@yeikel

Define an action that replaces the uses keyword with a different value but leaves everything as is

Example

      - name: Cache Maven Download
        uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
        with:
         path: ~/.m2/wrapper/dists
         key: ${{ runner.os }}-maven-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
         restore-keys: ${{ runner.os }}-maven-installation-
      - name: Cache Maven Download
--    uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
++    uses: myOrg/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
        with:
         path: ~/.m2/wrapper/dists
         key: ${{ runner.os }}-maven-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
         restore-keys: ${{ runner.os }}-maven-installation-

The goal is to handle relocations

Example : https://github.com/marketplace/actions/retry-step#ownership

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Recipes Wanted

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions