Skip to content

Alternative Rector workflow on check repo before steps run#3440

Merged
TomasVotruba merged 6 commits intomainfrom
alternative-rector-workflow
Mar 2, 2023
Merged

Alternative Rector workflow on check repo before steps run#3440
TomasVotruba merged 6 commits intomainfrom
alternative-rector-workflow

Conversation

@samsonasik
Copy link
Copy Markdown
Member

@samsonasik samsonasik commented Mar 2, 2023

@TomasVotruba this is alternative PR of:

which move the check on before steps instead of before strategy.

Closes #3439

@samsonasik samsonasik requested a review from TomasVotruba as a code owner March 2, 2023 16:44
-
if: github.event.pull_request.head.repo.full_name != github.repository
uses: actions/checkout@v3
- run: echo "run on ${{ github.event.pull_request.head.repo.full_name }}"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@TomasVotruba this is to verify the repo name to verify and it show:

Run echo "run on rectorphp/rector-src"
run on rectorphp/rector-src

see https://github.com/rectorphp/rector-src/actions/runs/4316268191/jobs/7531815857#step:3:1

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The pull_request.head seems goes to forks repo name
while github.repository goes to target repo name, so I changed to github.event.pull_request.head.repo.full_name

@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba let's give it a try?

@jackbentley you need to rebase your PR #3430 again to verify if it keep works after this merged.

@TomasVotruba TomasVotruba merged commit f56a053 into main Mar 2, 2023
@TomasVotruba TomasVotruba deleted the alternative-rector-workflow branch March 2, 2023 18:28
@TomasVotruba
Copy link
Copy Markdown
Member

Let's try it out 🙏

@samsonasik
Copy link
Copy Markdown
Member Author

@TomasVotruba it doesn't work, it now show pending on PR from fork, see #3430 (comment)

samsonasik added a commit that referenced this pull request May 8, 2023
* Alternative Rector workflow on check repo before steps run

* show display repo name to check

* check full name

* try add unused property

* [ci-review] Rector Rectify

* update templaet

---------

Co-authored-by: GitHub Action <actions@github.com>
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