![]() When calling this action in your job configuration, pass the git submodule update command using the args keyword, as in the example below. Install the extension by adding the following section to your YML file: - name: git Actions runs-on: ubuntu-latest steps: - uses: actions/checkoutv2 name: Compil. The git Actions extension allows any Git command to be executed inside a workflow. I try to run my workflow Github Action name: test on: push: branches: - production. Submodules: recursive Use git Actions Extension name: Checkout repository and submodules The example job below checks out the repository and its submodules in a single step. If you exceed the limit, GitHub will save the new cache but will begin evicting caches until the total size is less than the repository limit. There is no limit on the number of caches you can store, but the total size of all caches in a repository is limited to 10 GB. Run: git submodule update -init -recursive Use submodules InputĪnother way to check out submodules in a repository is to include the submodules input in the step that calls the checkout action. GitHub will remove any cache entries that have not been accessed in over 7 days. The second step runs the command that initiates and updates the submodules. For more information, see jobs..permissions.When you add the permissions key within a specific job, all actions and run commands within that job that use the GITHUBTOKEN gain the access rights you specify.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |