Skip to content

Commit 07a1ff6

Browse files
committed
testing completed - back to original
1 parent 898213b commit 07a1ff6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/update-hkubectl-downloads.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ name: Update Download Files from hkubectl Release
22

33
# Trigger the workflow when a new release is published in the hkubectl repository
44
on:
5-
# Triggers the workflow on push or pull request events but only for the master branch
6-
pull_request:
7-
branches: [ source ]
5+
repository_dispatch:
6+
types: [hkubectl-release]
87

98
jobs:
109
update-files:
@@ -15,7 +14,7 @@ jobs:
1514
uses: actions/checkout@v2
1615
with:
1716
repository: kube-HPC/kube-HPC.github.io
18-
ref: test_branch_1
17+
ref: source
1918

2019
- name: Download latest release files from hkubectl
2120
run: |
@@ -30,11 +29,11 @@ jobs:
3029
run: |
3130
git config --global user.email "[email protected]"
3231
git config --global user.name "GitHub Action"
33-
git checkout test_branch_1 || git checkout -b test_branch_1 origin/test_branch_1
32+
git checkout source || git checkout -b source origin/source
3433
git add -A
3534
if ! git diff --cached --quiet; then
3635
git commit -m "Update hkubectl download files to the latest release"
37-
git push origin test_branch_1
36+
git push origin source
3837
else
3938
echo "No changes to commit, skipping commit and push."
4039
fi

0 commit comments

Comments
 (0)