How to Link User Site README as Profile Page README? #57202
-
Select Topic AreaQuestion BodyI'm trying to link my user site repo README as my profie page README. Will be grateful for any direction on the matter |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
Hi @1960s, Your GitHub username is 1960s and your GitHub profile is So, if i m correct. Then, it is hard to do. But, if your end goal is to maintain both file. Then, you can do by creating GitHub page. First way.
In this method, you can manage your GitHub page on this URL Second way.And other way to use GitHub action like this, which is change another repo file content. name: Update README
on:
push:
branches:
- main
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update README in otherrepo
run: |
# Read the contents of the README file
readme_contents=$(cat README.md)
# Clone the otherrepo repository
git clone https://github.com/DSDmark/otherrepo.git
# Update the README file in otherrepo with the contents from actionofgithub
echo "$readme_contents" > otherrepo/README.md
# Commit and push the changes
cd otherrepo
git config user.name "Your Name"
git config user.email "your@email.com"
git add README.md
git commit -m "Update README from actionofgithub"
git push |
Beta Was this translation helpful? Give feedback.

Hi @1960s,
Your GitHub username is 1960s and your GitHub profile is
1960s/README.mdand you have a GitHub page which is1960s.github.iowhich is also contained the same README file as1960s/README.md. So, your question is (if I understood correctly), there is a way to add those two reamdes to make only one. So, whenever you made change. You will not need to change both of separately.So, if i m correct. Then, it is hard to do. But, if your end goal is to maintain both file. Then, you can do by creating GitHub page.
First way.
Go to your 1960s repository on GitHub.
Click on the Settings tab.
Scroll down to the GitHub Pages section.
In the Source dropdown, select the branch that con…