Skip to content

Commit

Permalink
testing completed - back to original
Browse files Browse the repository at this point in the history
  • Loading branch information
Adir111 committed Dec 30, 2024
1 parent 898213b commit 07a1ff6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/update-hkubectl-downloads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit 07a1ff6

Please sign in to comment.