Skip to content

Commit

Permalink
Merge branch 'master' into build
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 21, 2021
2 parents ed69f9b + 9566790 commit a5a6f94
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ jobs:
- name: Copy ./nodecg-temp > ./nodecg
run: cp -r ./nodecg-temp ./nodecg

# Checkout this repository
# Checkout the main branch of this repository with full depth
- name: Checkout this repository
uses: actions/checkout@v2
with:
token: ${{ secrets['GH_PAT'] }}
ref: master
fetch-depth: 0
path: ./nodecg/bundles/esa-commercials

# Set the local git user config to use the GitHub Actions bot account
Expand All @@ -37,6 +40,14 @@ jobs:
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
# Recheckout both the main and build branches and merge the main into build.
- name: (Re)checkout both branches and merge main into build
working-directory: ./nodecg/bundles/esa-commercials
run: |
git checkout master
git checkout build
git merge master
# Setup some Node stuff
- name: Node.js setup
uses: actions/setup-node@v2
Expand Down Expand Up @@ -73,17 +84,20 @@ jobs:
run: npm run build

# Commit newly built files
# This can "fail" if there are no newly changed/built files, but the next step should continue anyway.
- name: Commit built files
id: commit
continue-on-error: true
working-directory: ./nodecg/bundles/esa-commercials
run: |
git add -f dashboard extension
git commit -m "Built files" -a
# Pushes the built files to a specific branch
- name: Push built files to "build" branch
#if: ${{ steps.commit.outcome == 'success' }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets['GH_PAT'] }}
branch: build
force: true
directory: ./nodecg/bundles/esa-commercials

0 comments on commit a5a6f94

Please sign in to comment.