-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing completed - back to original
- Loading branch information
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,8 @@ name: Update Download Files from hkubectl Release | |
|
||
# Trigger the workflow when a new release is published in the hkubectl repository | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
pull_request: | ||
branches: [ source ] | ||
repository_dispatch: | ||
types: [hkubectl-release] | ||
|
||
jobs: | ||
update-files: | ||
|
@@ -15,7 +14,7 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
repository: kube-HPC/kube-HPC.github.io | ||
ref: test_branch_1 | ||
ref: source | ||
|
||
- name: Download latest release files from hkubectl | ||
run: | | ||
|
@@ -30,11 +29,11 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
git checkout test_branch_1 || git checkout -b test_branch_1 origin/test_branch_1 | ||
git checkout source || git checkout -b source origin/source | ||
git add -A | ||
if ! git diff --cached --quiet; then | ||
git commit -m "Update hkubectl download files to the latest release" | ||
git push origin test_branch_1 | ||
git push origin source | ||
else | ||
echo "No changes to commit, skipping commit and push." | ||
fi | ||
|