Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add push to another repository workflow #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mikoscz
Copy link
Member

@mikoscz mikoscz commented Oct 14, 2022

No description provided.

@mikoscz
Copy link
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
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
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
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
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
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
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
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
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
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