File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ name: Update Download Files from hkubectl Release
2
2
3
3
# Trigger the workflow when a new release is published in the hkubectl repository
4
4
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]
8
7
9
8
jobs :
10
9
update-files :
15
14
uses : actions/checkout@v2
16
15
with :
17
16
repository : kube-HPC/kube-HPC.github.io
18
- ref : test_branch_1
17
+ ref : source
19
18
20
19
- name : Download latest release files from hkubectl
21
20
run : |
@@ -30,11 +29,11 @@ jobs:
30
29
run : |
31
30
git config --global user.email "[email protected] "
32
31
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
34
33
git add -A
35
34
if ! git diff --cached --quiet; then
36
35
git commit -m "Update hkubectl download files to the latest release"
37
- git push origin test_branch_1
36
+ git push origin source
38
37
else
39
38
echo "No changes to commit, skipping commit and push."
40
39
fi
You can’t perform that action at this time.
0 commit comments