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

Fix the way we check repo owner on cd workflows #1898

Merged
merged 11 commits into from
Jul 9, 2024

Conversation

shohamazon
Copy link
Collaborator

@shohamazon shohamazon commented Jul 9, 2024

  1. Until now, we always checked the repo owner using github.repository_owner which is always equal to valkey-io (upstream owner name)
    But we want to check the pr's branch repo owner, and this is done using ${{ github.event.pull_request.head.repo.owner.login }}

  2. Removed the check of repo owner from amazonlinux CI on java and go workflows

Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
@shohamazon shohamazon requested a review from a team as a code owner July 9, 2024 13:01
Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
Signed-off-by: Shoham Elias <shohame@amazon.com>
@@ -61,7 +61,7 @@ jobs:

publish-binaries:
needs: [start-self-hosted-runner, load-platform-matrix]
if: github.repository_owner == 'valkey-io'
if: ${{ github.event.pull_request.head.repo.owner.login }} == 'valkey-io'
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove {{}}

Signed-off-by: Shoham Elias <shohame@amazon.com>
@barshaul barshaul merged commit 4018de3 into valkey-io:main Jul 9, 2024
22 checks passed
shohamazon added a commit that referenced this pull request Jul 9, 2024
shohamazon added a commit that referenced this pull request Jul 9, 2024
This reverts commit 4018de3.

Signed-off-by: Shoham Elias <shohame@amazon.com>
shohamazon added a commit that referenced this pull request Jul 9, 2024
Signed-off-by: Shoham Elias <shohame@amazon.com>
@shohamazon shohamazon deleted the fix_repo_owner branch July 9, 2024 16:00
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.

2 participants