Skip to content

Commit

Permalink
Merge pull request #890 from ndw/diff-hacking
Browse files Browse the repository at this point in the history
Stop fussing with merge base branch
  • Loading branch information
ndw authored Dec 11, 2023
2 parents f0c0cd8 + a590e9c commit b9dfdb8
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
run: |
git checkout master
mb=$(git merge-base master ${{ github.event.pull_request.head.sha }})
echo "merge-base = $mb"
echo "mbase=$mb" >> $GITHUB_OUTPUT
build-and-deploy-pr:
Expand All @@ -66,22 +67,23 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Save XML
run: |
mkdir /tmp/pr-sources
mkdir /tmp/pr-sources/{etc,schema,specifications}
rsync -ar ./etc/ /tmp/pr-sources/etc/
rsync -ar ./schema/ /tmp/pr-sources/schema/
rsync -ar ./specifications/ /tmp/pr-sources/specifications/
find /tmp/pr-sources -type f -name "*.xsl" -exec rm {} \;
- name: Checkout the merge base branch
uses: actions/checkout@v3
with:
ref: ${{ needs.check_branch.outputs.mbase }}

- name: Update XML
run: rsync -var /tmp/pr-sources/ ./
# what is this supposed to be exactly?
# - name: Save XML
# run: |
# mkdir /tmp/pr-sources
# mkdir /tmp/pr-sources/{etc,schema,specifications}
# rsync -ar ./etc/ /tmp/pr-sources/etc/
# rsync -ar ./schema/ /tmp/pr-sources/schema/
# rsync -ar ./specifications/ /tmp/pr-sources/specifications/
# find /tmp/pr-sources -type f -name "*.xsl" -exec rm {} \;
#
# - name: Checkout the merge base branch
# uses: actions/checkout@v3
# with:
# ref: ${{ needs.check_branch.outputs.mbase }}
#
# - name: Update XML
# run: rsync -var /tmp/pr-sources/ ./

- name: Build specifications
run: |
Expand Down

0 comments on commit b9dfdb8

Please sign in to comment.