A Github action to sync a Git repository.
- Syncs the current Git repository branch/tag
- Supports both source and target authentication (
HTTPBasicAuth
) - Supports deletion of branches/tags
- Linux
- macOS
steps:
- name: Sync Repository
uses: ecmwf-actions/sync-repository@v1
with:
target_repository: ecsdk/ecbuild
target_username: ${{ secrets.BITBUCKET_USERNAME }}
target_token: ${{ secrets.BITBUCKET_PAT }}
steps:
- name: Sync Repository
uses: ecmwf-actions/sync-repository@v1
with:
source_repository: ecmwf/ecbuild
source_token: ${{ secrets.GH_PAT }}
target_repository: ecsdk/ecbuild
target_username: ${{ secrets.BITBUCKET_USERNAME }}
target_token: ${{ secrets.BITBUCKET_PAT }}
Required The name of the source repository.
Default: ${{ github.repository }}
Required The name of the source repository branch or tag to sync.
Default: ${{ github.event.ref }}
Required The user login with read access to the source repository, must be URL-encoded.
Default: git
Required The user access token with read access to the source repository, must be URL-encoded.
Default: ${{ github.token }}
Required The host name and realm of the source Git server.
Default: github.com
Required The name of the target repository.
Required The user login with write access to the target repository, must be URL-encoded.
Required The user access token with write access to the target repository, must be URL-encoded.
Required The host name and realm of the target Git server.
Default: git.ecmwf.int/scm
npm install
This is a composite action that is provided only via an action.yml
definition file. Therefore, there is no need to build it and can only be tested by linting or parsing the YAML file.
npm run lint
npm test
This software is licensed under the terms of the Apache License Version 2.0 which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
In applying this licence, ECMWF does not waive the privileges and immunities granted to it by virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.