Skip to content

Commit

Permalink
Scripts paths
Browse files Browse the repository at this point in the history
  • Loading branch information
almahmoud committed Jan 8, 2025
1 parent 652fde8 commit 0435e79
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/create_endpoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
required: true
type: string

env:
BIOC_HUBSINGEST_PATH: "${{ github.workspace }}"

jobs:
create-endpoint:
runs-on: ubuntu-latest
Expand All @@ -36,4 +39,5 @@ jobs:
- name: Create endpoint
run: |
./hubsingest create_endpoint "${{ inputs.username }}" "${{ inputs.size }}" ${{ secrets[env.SECRET_NAME] }}
sudo bash install_hubsingest.sh
hubsingest create_endpoint "${{ inputs.username }}" "${{ inputs.size }}" ${{ secrets[env.SECRET_NAME] }}
6 changes: 5 additions & 1 deletion .github/workflows/delete_endpoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
required: true
type: string

env:
BIOC_HUBSINGEST_PATH: "${{ github.workspace }}"

jobs:
delete-endpoint:
runs-on: ubuntu-latest
Expand All @@ -27,4 +30,5 @@ jobs:
- name: Delete endpoint
run: |
./hubsingest delete_endpoint "${{ inputs.username }}"
sudo bash install_hubsingest.sh
hubsingest delete_endpoint "${{ inputs.username }}"
1 change: 1 addition & 0 deletions hubsingest
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
HUBSINGESTPATH=${BIOC_HUBSINGEST_PATH:-/usr/local/bin/hubsingest}

case "$1" in
create_endpoint)
Expand Down
4 changes: 2 additions & 2 deletions install_hubsingest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ HUBSINGESTPATH=${BIOC_HUBSINGEST_PATH:-/usr/local/bin/hubsingest}
mkdir -p $HUBSINGESTPATH

curl -o $HUBSINGESTPATH/hubsingest https://raw.githubusercontent.com/Bioconductor/hubsingest/refs/heads/devel/hubsingest
curl -o $HUBSINGESTPATH/hubsingest_create_endpoint.sh https://raw.githubusercontent.com/Bioconductor/hubsingest/refs/heads/devel/hubsingest_create_endpoint.sh
curl -o $HUBSINGESTPATH/hubsingest_delete_endpoint.sh https://raw.githubusercontent.com/Bioconductor/hubsingest/refs/heads/devel/hubsingest_delete_endpoint.sh
curl -o $HUBSINGESTPATH/hubsingest_create_endpoint.sh https://raw.githubusercontent.com/Bioconductor/hubsingest/refs/heads/devel/scripts/hubsingest_create_endpoint.sh
curl -o $HUBSINGESTPATH/hubsingest_delete_endpoint.sh https://raw.githubusercontent.com/Bioconductor/hubsingest/refs/heads/devel/scripts/hubsingest_delete_endpoint.sh

chmod +x $HUBSINGESTPATH/hubsingest
echo 'In order to persist the path, you may want to run, and/or add to your `rc` files:'
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 0435e79

Please sign in to comment.