Skip to content

Commit

Permalink
Merge pull request #79 from kube-HPC/hkubectl_trigger_kube-HPC_when_u…
Browse files Browse the repository at this point in the history
…pdates

trigger update for kube-HPC.github.io when changes are made in hkubectl
  • Loading branch information
Adir111 authored Dec 30, 2024
2 parents aea2631 + 31d3a92 commit e81cd17
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,10 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: /tmp/checksums.txt
asset_name: checksums.txt
asset_content_type: text/plain
asset_content_type: text/plain
- name: Trigger Update Files in kube-HPC.github.io
run: |
curl -X POST https://api.github.com/repos/kube-HPC/kube-HPC.github.io/dispatches \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.GH_TOKEN }}" \
-d '{"event_type": "hkubectl-release"}'
6 changes: 3 additions & 3 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: CI-PR

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
# Triggers the workflow on push or pull request events but only for the master branch.
pull_request:
branches: [ master ]

Expand All @@ -30,7 +30,7 @@ jobs:
run: |
sha256sum * > checksums.txt
sha256sum *
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: output
path: ./output/
path: ./output/
2 changes: 1 addition & 1 deletion hkubectl.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const main = async () => {
.recommendCommands()
.showHelpOnFail()
.help()
.epilog(chalk.bold('for more information visit http://hkube.io'))
.epilog(chalk.bold('for more information visit http://hkube.org'))
.completion();

yargs.middleware((args) => {
Expand Down

0 comments on commit e81cd17

Please sign in to comment.