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
22
33# Trigger the workflow when a new release is published in the hkubectl repository
44on :
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
98jobs :
109 update-files :
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
You can’t perform that action at this time.
0 commit comments