Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
costateixeira committed Aug 16, 2023
1 parent 0c4346f commit b1fadcf
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@ jobs:
run: echo ${GITHUB_REF##*/}
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# - name: Create gh-pages branch if it doesn't exist
# run: |
# git fetch origin
# exists=`git show-ref refs/heads/gh-pages`
# if [ -n "$exists" ]; then
# echo 'gh-pages branch exists';
# else
# echo 'gh-pages branch does not exist, creating it';
# git checkout --orphan gh-pages
# git reset --hard
# git commit --allow-empty -m "Initializing gh-pages branch"
# git push origin gh-pages
# git checkout ${GITHUB_REF##*/}
# fi
- name: Create gh-pages branch if it doesn't exist
run: |
git fetch origin
exists=`git show-ref refs/heads/gh-pages`
if [ -n "$exists" ]; then
echo 'gh-pages branch exists';
else
echo 'gh-pages branch does not exist, creating it';
git checkout --orphan gh-pages
git reset --hard
git commit --allow-empty -m "Initializing gh-pages branch"
git push origin gh-pages
git checkout ${GITHUB_REF##*/}
fi
- name: Update the image to the latest publisher
uses: docker://hl7fhir/ig-publisher-base:latest
with:
Expand All @@ -63,6 +63,11 @@ jobs:
# Run the publisher - don't run the batch script but run the line directly
args: java -Xmx4g -jar ./input-cache/publisher.jar publisher -ig . -auto-ig-build -repo https://github.com/${{github.repository}}


- name: List output directory contents
run: ls -la ./output


- name: Get branch names
id: branch-name
uses: tj-actions/branch-names@v4.3
Expand Down

0 comments on commit b1fadcf

Please sign in to comment.