Skip to content

Commit

Permalink
Overwrite version option
Browse files Browse the repository at this point in the history
  • Loading branch information
almahmoud authored Dec 4, 2024
1 parent 2715108 commit 3aabb49
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/create_info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
directory:
default: "anvil-rstudio-bioconductor"
required: true
version:
required: false
description: "Overwrite tag, defaults to VERSION file"

jobs:
build:
Expand All @@ -29,10 +32,15 @@ jobs:
run: |
mkdir -p ${{ inputs.directory }}/info
mkdir -p /tmp/${{ inputs.directory }}
CURR_VERSION=$(cat ${{ inputs.directory }}/VERSION)
CURR_VERSION="${{ inputs.version }}"
if [ -z "$CURR_VERSION" ]; then
CURR_VERSION=$(cat ${{ inputs.directory }}/VERSION)
fi
echo "Used version is $CURR_VERSION"
docker run --name ${{ inputs.directory }} -d us.gcr.io/broad-dsp-gcr-public/${{ inputs.directory }}:${CURR_VERSION}
sed -i "s/##${{ inputs.directory }}-VERSION##/${CURR_VERSION}/g" config/conf.json
bash scripts/generate_packages.sh ${{ inputs.directory }}
- name: Copy to tmp before retry
run: |
# Remove spaces
Expand Down

0 comments on commit 3aabb49

Please sign in to comment.