From 74f6ac80803ec454b6c728c61ba3501da9bdc6ad Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Mon, 2 Dec 2024 11:07:12 +0100 Subject: [PATCH] Add a sync workflow to keep the internal repository up-to-date --- .github/workflows/sync.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/sync.yaml diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml new file mode 100644 index 00000000..418091c3 --- /dev/null +++ b/.github/workflows/sync.yaml @@ -0,0 +1,23 @@ +name: sync + +# Controls when the workflow will run +on: + + # Trigger the workflow on all pushes to the named branches and all tags + push: + branches: + - 'master' + tags: + - '**' + +jobs: + + # Calls a reusable CI workflow to sync the current with a remote repository. + # It will correctly handle addition of any new and removal of existing Git objects. + sync: + name: sync + uses: ecmwf-actions/reusable-workflows/.github/workflows/sync.yml@v2 + secrets: + target_repository: ESCAPE/dwarf-p-radiation-ecrad + target_username: ClonedDuck + target_token: ${{ secrets.BITBUCKET_PAT }}