Skip to content

Commit 87b7a72

Browse files
Merge pull request #84 from Muckenbatscher/ref-restriction
remove the restriction to only dispatch the workflow from master
2 parents 3dfbb95 + b97f7fd commit 87b7a72

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.github/workflows/create_tests.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,7 @@ env:
1010
PR_SOURCE_BRANCH_NAME: test-generation
1111

1212
jobs:
13-
validate-ref:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- run: |
17-
if [ "${{ github.ref }}" != "refs/heads/${{ env.PR_TARGET_BRANCH_NAME }}" ]; then
18-
echo "Can only be run for branch ${{ env.PR_TARGET_BRANCH_NAME }}"
19-
exit 1
20-
fi
21-
2213
build-java:
23-
needs: validate-ref
2414
runs-on: ubuntu-latest
2515

2616
outputs:
@@ -91,6 +81,8 @@ jobs:
9181

9282
steps:
9383
- uses: actions/checkout@v6
84+
with:
85+
ref: ${{ env.PR_TARGET_BRANCH_NAME }}
9486

9587
- name: Check for existing branch
9688
id: existing_branch

MaterialTheming.slnx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
<Folder Name="/Solution Items/GitHub/">
77
<File Path=".github/workflows/build_test_library.yml" />
88
<File Path=".github/workflows/build_blazor.yml" />
9+
<File Path=".github/workflows/create_tests.yml" />
10+
<File Path=".github/workflows/deploy_gh_pages.yml" />
911
<File Path=".github/workflows/official_commit_verify.yml" />
1012
<File Path=".github/workflows/push_nuget_packages.yml" />
1113
<File Path=".github/workflows/spell_check_readme.yml" />
1214
<File Path=".github/workflows/style_check.yml" />
13-
<File Path=".github/workflows/deploy-gh-pages.yml" />
1415
</Folder>
1516
<Folder Name="/Solution Items/Global Properties/">
1617
<File Path="Directory.Build.props" />

0 commit comments

Comments
 (0)