Skip to content
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
5261242
[Tests] Fix intro tests on older macOS (#11736)
mandel-macaque Jun 4, 2021
7d514fb
Seeing if pushing to this lego branch will create a PR inside Automat…
Jun 4, 2021
671f12d
[Actions] Remove broken action. (#11819)
mandel-macaque Jun 4, 2021
f70a589
try again
Jun 4, 2021
0eaec29
let's get the lego firing again
Jun 4, 2021
383e164
fire lego #3
Jun 4, 2021
f0ed39a
see if test gha occurs
Jun 4, 2021
6e5bda3
trying after changing gha name
Jun 4, 2021
1a8f249
changing the branch (#11826)
tj-devel709 Jun 4, 2021
7ab326e
after changing the GHA in main
Jun 4, 2021
270678e
perhaps the action was not updated yet
Jun 4, 2021
fb20166
Merge remote-tracking branch 'xamarin/main' into lego/TJ_TestingAutom…
Jun 4, 2021
9c67d6a
after merge main
Jun 4, 2021
323313c
wrong label
Jun 4, 2021
f61749d
fire
Jun 4, 2021
fa82f9e
adding sync to this branch
Jun 4, 2021
db697de
Merge branch 'AutomatingLocalizationGHATest' into lego/TJ_TestingAuto…
tj-devel709 Jun 4, 2021
d4add13
fixing env variable
Jun 4, 2021
081ad8f
Merge remote-tracking branch 'xamarin/lego/TJ_TestingAutomatingLocali…
Jun 4, 2021
8e52bbf
conditionals in the wrong place
Jun 4, 2021
9b71437
Merge branch 'AutomatingLocalizationGHATest' into lego/TJ_TestingAuto…
tj-devel709 Jun 4, 2021
661e976
add debugging
Jun 4, 2021
c783d54
more debugging
Jun 4, 2021
c1865cd
Merge branch 'AutomatingLocalizationGHATest' into lego/TJ_TestingAuto…
tj-devel709 Jun 4, 2021
3d0ea49
changing the label requirement for the tests
Jun 4, 2021
709a904
Merge branch 'AutomatingLocalizationGHATest' into lego/TJ_TestingAuto…
tj-devel709 Jun 4, 2021
d6087d7
more debugging 2
Jun 4, 2021
c0b3765
Merge remote-tracking branch 'xamarin/lego/TJ_TestingAutomatingLocali…
Jun 4, 2021
229d39d
try more debugging
Jun 4, 2021
9f01f98
Merge branch 'AutomatingLocalizationGHATest' into lego/TJ_TestingAuto…
tj-devel709 Jun 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/localization_branch_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
print_info:
name: 'Print Information'
runs-on: ubuntu-latest
env:
# We want to do the sync if we merged the pull request, the author was 'github-actions', and it has the correct label
FROM_LEGO: ${{ github.event.pull_request.merged == true && github.event.pull_request.user.login == 'github-actions[bot]' }} # && contains(github.event.pull_request.labels.*.names, 'localization_bot') }}
steps:
- name: "Get Pull Request Status"
run: |
Expand All @@ -34,6 +37,9 @@ jobs:
- name: "login is correct"
run: |
echo "${{ github.event.pull_request.user.login == 'github-actions[bot]' }}"
- name: "Can we access the variable?"
run: |
echo "${{ env.FROM_LEGO == true }}"

delete_branch:
name: 'Delete Localization branch'
Expand All @@ -44,7 +50,7 @@ jobs:
steps:
- uses: dawidd6/action-delete-branch@v3
name: 'delete'
if: ${{ env.FROM_LEGO == true }}
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.user.login == 'github-actions[bot]' }} # && contains(github.event.pull_request.labels.*.names, 'localization_bot') }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branches: AutomatingLocalizationGHATest2
Expand All @@ -58,7 +64,7 @@ jobs:
steps:
- uses: actions/checkout@v2
name: 'checkout'
if: ${{ env.FROM_LEGO == true }}
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.user.login == 'github-actions[bot]' }} # && contains(github.event.pull_request.labels.*.names, 'localization_bot') }}
with:
repository: ${{ github.repository }}
ref: 'AutomatingLocalizationGHATest2'
Expand All @@ -72,7 +78,7 @@ jobs:
steps:
- uses: ad-m/github-push-action@master
name: push
if: ${{ env.FROM_LEGO == true }}
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.user.login == 'github-actions[bot]' }} # && contains(github.event.pull_request.labels.*.names, 'localization_bot') }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'AutomatingLocalizationGHATest2'