Skip to content

Commit

Permalink
Merge pull request #124 from lhearachel/xmap_branch
Browse files Browse the repository at this point in the history
Commit xMAP to a branch on each push to main
  • Loading branch information
lhearachel authored Jan 24, 2024
2 parents 862b53e + a6e26cd commit e21bb9d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,25 @@ jobs:
name: pokeplatinum-failure-${{ github.run_id }}
path: failure.tar.gz
retention-days: 1

- name: Checkout xMAP
if: ${{ github.event_name == 'push' }}
uses: actions/checkout@v4
with:
path: 'xmap'
ref: 'xmap'

- name: Move xMAP
if: ${{ github.event_name == 'push' }}
run: |
mkdir -p xmap
cp build/*.xMAP xmap/platinumus.xMAP
echo "XMAP_COMMIT_MSG=$( git log --format=%s ${GITHUB_SHA} )" >> $GITHUB_ENV
- name: Update xMAP
if: ${{ github.event_name == 'push' }}
uses: EndBug/add-and-commit@v9
with:
cwd: "./xmap"
add: "*.xMAP"
message: ${{ env.XMAP_COMMIT_MSG }}

0 comments on commit e21bb9d

Please sign in to comment.