diff --git a/.github/workflows/publish_ig.yml b/.github/workflows/publish_ig.yml index ef4a72d..0ffea35 100644 --- a/.github/workflows/publish_ig.yml +++ b/.github/workflows/publish_ig.yml @@ -30,25 +30,27 @@ jobs: java-version: 21 distribution: adopt + - name: Get the repo name + id: repo_name + run: echo "::set-output name=repo::$(echo ${{ github.repository }} | cut -d '/' -f 2)" + shell: bash + - name: 📥 Download IG Publisher - run: wget -q https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar + run: | + cd /home/runner/work/${{ steps.repo_name.outputs.repo }} + wget -q https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar - uses: actions/checkout@v4 with: repository: ${{ github.repository }} - - name: Get the repo name - id: repo_name - run: echo "::set-output name=repo::$(echo ${{ github.repository }} | cut -d '/' -f 2)" - shell: bash - - name: List path run: ls -R ./ # Builds the HTML page for the IG. - name: 🏃‍♂️ Run IG Publisher timeout-minutes: 45 # We need a long timeout here - run : | + run: | cd /home/runner/work/${{ steps.repo_name.outputs.repo }}/${{ steps.repo_name.outputs.repo }} java -Xmx8192m -jar ../publisher.jar -ig . cd ..