Skip to content

Add push to another repository workflow#7

Open
mikoscz wants to merge 1 commit intoSelleo:mainfrom
mikoscz:add-workflow
Open

Add push to another repository workflow#7
mikoscz wants to merge 1 commit intoSelleo:mainfrom
mikoscz:add-workflow

Conversation

@mikoscz
Copy link
Copy Markdown
Member

@mikoscz mikoscz commented Oct 14, 2022

No description provided.

@mikoscz
Copy link
Copy Markdown
Member Author

mikoscz commented Oct 14, 2022

I need to check the typos :D


## The problem
Sometimes we need push code from `Repository A`
action to `Repository B` codebase, for eg. when we are implementing
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
action to `Repository B` codebase, for eg. when we are implementing
action to the `Repository B` codebase, for e.g., when we are implementing

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be e.g. or for example, "for" is already included in e.g. :D

## The problem
Sometimes we need push code from `Repository A`
action to `Repository B` codebase, for eg. when we are implementing
GitOps(for the deployment repo) or when we need separate repo for build
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
GitOps(for the deployment repo) or when we need separate repo for build
GitOps(for the deployment repo) or when we need separate repo for the build

Sometimes we need push code from `Repository A`
action to `Repository B` codebase, for eg. when we are implementing
GitOps(for the deployment repo) or when we need separate repo for build
process for eg. with Design Tokens.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
process for eg. with Design Tokens.
process for e.g. with Design Tokens.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here "e.g. / for example"

4) Go to source repo(`Repository A`).
5) Go to `Settings` > `Secrets` > `Actions`.
6) Click `New repository secret`.
7) Add name for eg. `DEPLOY_SSH_KEY` - remember it must match variable name used in workflow.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
7) Add name for eg. `DEPLOY_SSH_KEY` - remember it must match variable name used in workflow.
7) Add a name for e.g. `DEPLOY_SSH_KEY` - remember it must match the variable name used in the workflow.

# Push to another repository

## The problem
Sometimes we need push code from `Repository A`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Sometimes we need push code from `Repository A`
Sometimes we need to push the code from `Repository A`

process for eg. with Design Tokens.

## Solution
We can leverage GitHub deploy keys(https://docs.github.com/en/developers/overview/managing-deploy-keys), heres how:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
We can leverage GitHub deploy keys(https://docs.github.com/en/developers/overview/managing-deploy-keys), heres how:
We can leverage GitHub deploy keys ([managing deploy keys](https://docs.github.com/en/developers/overview/managing-deploy-keys)), here is how:

Copy link
Copy Markdown
Member

@qbart qbart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge after comments :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants