Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace action but leave configuration as is #80

Open
yeikel opened this issue Apr 26, 2023 · 0 comments
Open

Replace action but leave configuration as is #80

yeikel opened this issue Apr 26, 2023 · 0 comments
Labels

Comments

@yeikel
Copy link
Contributor

yeikel commented Apr 26, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Recipes Wanted
Development

No branches or pull requests

2 participants