File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ module.exports = [
1212 'actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526' , //actions/setup-ruby@v1.1.2
1313 'actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4' , //actions/stale@v 3.0.13
1414 'crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688' ,
15+ 'crykn/copy_folder_to_another_repo_action@abc264e1c16eb3d7b1f7763bfdb0e1699ad43120' ,
1516 'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911' ,
1617 'docker://chinthakagodawita/autoupdate-action:v1' ,
1718 'fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289' ,
Original file line number Diff line number Diff line change 1+ name : site-policy-sync
2+
3+ # Controls when the action will run.
4+ on :
5+ # Triggers the workflow pull requests merged to the main branch
6+ pull_request :
7+ branches :
8+ - main
9+ types :
10+ - closed
11+
12+ # Allows you to run this workflow manually from the Actions tab
13+ workflow_dispatch :
14+
15+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+ jobs :
17+ # This workflow contains a single job called "build"
18+ copy-file :
19+ # The type of runner that the job will run on
20+ runs-on : ubuntu-latest
21+
22+ # Steps represent a sequence of tasks that will be executed as part of the job
23+ steps :
24+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
25+ - uses : actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
26+
27+ # Pushes to other repo
28+ - name : Push folder to another repository
29+ uses : crykn/copy_folder_to_another_repo_action@abc264e1c16eb3d7b1f7763bfdb0e1699ad43120
30+ env :
31+ API_TOKEN_GITHUB : ${{ secrets.API_TOKEN_SITEPOLICY }}
32+ with :
33+ source_folder : ' content/github/site-policy'
34+ destination_repo : ' github/site-policy'
35+ destination_branch : ' non-substantive-changes'
36+ destination_folder : ' Policies'
37+ user_email : ' pcihon@users.noreply.github.com'
38+ user_name : ' pcihon'
39+ commit_msg : ' Mirroring non-substantive changes.'
You can’t perform that action at this time.
0 commit comments