Skip to content

"Migrating from GitLab CI/CD to GitHub Actions" article uses Gitlab CI_COMMIT_REF_SLUG without equivalent Github variable #22249

Closed as not planned
@jeverling

Description

@jeverling

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/migrating-to-github-actions/migrating-from-gitlab-cicd-to-github-actions#caching

What part(s) of the article would you like to see updated?

The article uses the following example for how to translate caching of workflow files:

image: node:latest

cache:
  key: $CI_COMMIT_REF_SLUG
  paths:
    - .npm/

There is no equivalent variable being shown for Github, instead the cache key is set to key: v1-npm-deps-${{ hashFiles('**/package-lock.json') }}.

I think it would be better to use an example, where there is actually an equivalent variable in Github.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionsThis issue or pull request should be reviewed by the docs actions teamcontentThis issue or pull request belongs to the Docs Content teamwaiting for reviewIssue/PR is waiting for a writer's review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions