Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

final documentation before repository is archived #106

final documentation before repository is archived

final documentation before repository is archived #106

Workflow file for this run

name: docs-update-action
on:
push:
branches:
- master
- unstable
paths:
- docs/**
- docStructure.yml
jobs:
do-it:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.EISVERYGOODLETTER_PAT }}
with:
source-directory: docs/
destination-github-username: rshs-robotics-club
destination-repository-name: rshs-robotics-club.github.io
user-email: [email protected]
target-branch: main
target-directory: docs/ev3wrap/${{ github.head_ref || github.ref_name }}
- name: Setup for yml file update
uses: actions/checkout@v2
with:
path: ymlupdatepath
- name: update the yml file
run: |
sed -i -e s/AAA_BRANCH_NAME_AAA/${{ github.head_ref || github.ref_name }}/g ymlupdatepath/docStructure.yml
- name: push the updated yml file
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.EISVERYGOODLETTER_PAT }}
with:
source_file: ymlupdatepath/docStructure.yml
destination_repo: rshs-robotics-club/rshs-robotics-club.github.io
destination_folder: docs/_data/structures/
rename: ${{ github.head_ref || github.ref_name }}.yml
user_email: [email protected]
user_name: yml-copier
commit_message: yml-update
# name: docs-update-action
# on: [push]
# jobs:
# copy-files-to-docs-repo:
# runs-on: ubuntu-latest
# steps:
# - name: clone this repo into a folder named "thisrepo" inside the vm
# uses: actions/checkout@v3
# with:
# path: thisrepo
# - name: clone the docs repo
# uses: actions/checkout@v3
# with:
# path: docsrepo
# repository: rshs-robotics-club/rshs-robotics-club.github.io
# - name: copy the files from this repo into the docs repo
# run: |
# sudo rm -rf docsrepo/docs/ev3wrap-stable
# sudo cp -a thisrepo/docs/ docsrepo/docs/ev3wrap-stable
# - run: |
# cd docsrepo
# git remote rm origin
# cd ../thisrepo
# git remote rm origin
# cd ..
# # - name: custom push command
# # run: |
# # cd docsrepo
# # git config --global user.email "Eisverygoodletter"
# # git config --global user.name "Eisverygoodletter_auto_doc_updater"
# # git add .
# # git commit -m "automated docs update"
# # echo "https://${{ secrets.EISVERYGOODLETTER_PAT }}@github.com/rshs-robotics-club/rshs-robotics-club.github.io.git"
# # git push "https://${{ secrets.EISVERYGOODLETTER_PAT }}@github.com/rshs-robotics-club/rshs-robotics-club.github.io.git" --set-upstream "main"
# - name: do the push
# uses: cpina/github-action-push-to-another-repository@main
# env:
# API_TOKEN_GITHUB: ${{ secrets.EISVERYGOODLETTER_PAT }}
# with:
# source-directory: docsrepo/
# destination-github-username: Eisverygoodletter
# destination-repository-name: rshs-robotics-club.github.io
# user-email: [email protected]
# user-name: Eisverygoodletter
# destination-repository-username: rshs-robotics-club
# target-branch: main
# commit-message: automatic update docs action triggered from stable