mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-26 19:44:16 +01:00
Update publish.yml
This commit is contained in:
parent
f902d1e934
commit
69a1997f03
41
.github/workflows/publish.yml
vendored
41
.github/workflows/publish.yml
vendored
@ -45,50 +45,15 @@ jobs:
|
|||||||
path: 'citra-merge'
|
path: 'citra-merge'
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
submodules: true
|
submodules: true
|
||||||
|
token: ${{ secrets.ALT_GITHUB_TOKEN }}
|
||||||
- uses: actions/github-script@v7
|
- uses: actions/github-script@v7
|
||||||
name: 'Update and tag new commits'
|
name: 'Update and tag new commits'
|
||||||
if: ${{ steps.check-changes.outputs.result == 'true' }}
|
if: ${{ steps.check-changes.outputs.result == 'true' }}
|
||||||
|
env:
|
||||||
|
ALT_GITHUB_TOKEN: ${{ secrets.BUILD_MAGIC }}
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const execa = require("execa");
|
const execa = require("execa");
|
||||||
const tagAndPush = require('./.github/workflows/ci-merge.js').tagAndPush;
|
const tagAndPush = require('./.github/workflows/ci-merge.js').tagAndPush;
|
||||||
process.chdir('${{ github.workspace }}/citra-merge');
|
process.chdir('${{ github.workspace }}/citra-merge');
|
||||||
tagAndPush(github, context.repo.owner, `${context.repo.repo}-nightly`, execa);
|
tagAndPush(github, context.repo.owner, `${context.repo.repo}-nightly`, execa);
|
||||||
canary:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: ${{ github.event.inputs.canary != 'false' && github.repository == 'RyzenDew/Lime-3DS-Emulator' }}
|
|
||||||
steps:
|
|
||||||
# this checkout is required to make sure the GitHub Actions scripts are available
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
name: Pre-checkout
|
|
||||||
with:
|
|
||||||
submodules: false
|
|
||||||
- uses: actions/github-script@v7
|
|
||||||
id: check-changes
|
|
||||||
name: 'Check for new changes'
|
|
||||||
env:
|
|
||||||
# 24 hours
|
|
||||||
DETECTION_TIME_FRAME: 86400000
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
if (context.payload.inputs && context.payload.inputs.canary === 'true') return true;
|
|
||||||
const checkCanaryChanges = require('./.github/workflows/ci-merge.js').checkCanaryChanges;
|
|
||||||
return checkCanaryChanges(github, context);
|
|
||||||
- run: npm install execa@5
|
|
||||||
if: ${{ steps.check-changes.outputs.result == 'true' }}
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
name: Checkout
|
|
||||||
if: ${{ steps.check-changes.outputs.result == 'true' }}
|
|
||||||
with:
|
|
||||||
path: 'citra-merge'
|
|
||||||
fetch-depth: 0
|
|
||||||
submodules: true
|
|
||||||
- uses: actions/github-script@v7
|
|
||||||
name: 'Check and merge canary changes'
|
|
||||||
if: ${{ steps.check-changes.outputs.result == 'true' }}
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
const execa = require("execa");
|
|
||||||
const mergebot = require('./.github/workflows/ci-merge.js').mergebot;
|
|
||||||
process.chdir('${{ github.workspace }}/citra-merge');
|
|
||||||
mergebot(github, context, execa);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user