From 97c76cd2bfb51892fe789c822ef7e7d4074a214d Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Sat, 23 Apr 2022 15:17:28 +0800 Subject: [PATCH 1/2] ci: add org readme updater workflow --- .github/workflows/org-readme.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/org-readme.yaml diff --git a/.github/workflows/org-readme.yaml b/.github/workflows/org-readme.yaml new file mode 100644 index 000000000..fb69f4d04 --- /dev/null +++ b/.github/workflows/org-readme.yaml @@ -0,0 +1,26 @@ +name: Update Org README + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + update-readme: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Pushes test file + uses: dmnemec/copy_file_to_another_repo_action@main + env: + API_TOKEN_GITHUB: ${{ secrets.REPOS_PAT }} + with: + source_file: 'README.md' + destination_repo: 'spacedrive/.github' + destination_folder: '.' + user_email: 'actions@spacedrive.app' + user_name: 'actions' + commit_message: 'Update README' \ No newline at end of file From 6492f097ce2ee0d42079041a239c405c2b6a5bd6 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Sat, 23 Apr 2022 15:19:43 +0800 Subject: [PATCH 2/2] ci: fix org-readme --- .github/workflows/org-readme.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/org-readme.yaml b/.github/workflows/org-readme.yaml index fb69f4d04..10d7d42f2 100644 --- a/.github/workflows/org-readme.yaml +++ b/.github/workflows/org-readme.yaml @@ -13,14 +13,14 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Pushes test file + - name: Update README uses: dmnemec/copy_file_to_another_repo_action@main env: API_TOKEN_GITHUB: ${{ secrets.REPOS_PAT }} with: source_file: 'README.md' - destination_repo: 'spacedrive/.github' - destination_folder: '.' + destination_repo: 'spacedriveapp/.github' + destination_folder: 'profile' user_email: 'actions@spacedrive.app' - user_name: 'actions' + user_name: 'GH Actions' commit_message: 'Update README' \ No newline at end of file