Change a filename to same as repo with Github Actions

Hi!

I’m trying to use github.event.repository.name in combination with mv to change a filename to same as the repos name.

I’m not sure about the syntax or if it’s even possible to use a variable name in combination with mv in the virtual environment.

Anyone here who have a solution for this?

Best Regards
Harri

In general, ${{ ... }} will let you have access to a thing.

See:
https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#about-contexts-and-expressions

Which has lots of examples.

1 Like

Thanks! I’m new to this so i will continue to read about it :slight_smile:

1 Like