This commit is contained in:
monkeyx-net 2024-08-26 19:17:39 +01:00
commit e183bfd34d

View file

@ -5,19 +5,17 @@ on:
branches: branches:
- cooker* - cooker*
- feat* - feat*
- branch/cooker*
paths: paths:
- '.github/workflows/**' - '.github/workflows/**'
- 'automation_tools/**' - 'automation_tools/**'
- 'config/**' - 'config/**'
- 'config/es-de/**'
- 'functions/**' - 'functions/**'
- 'rd-submodules/**' - 'rd-submodules/**'
- '*.sh' - '*.sh'
- 'net.retrodeck.retrodeck.yml' - 'net.retrodeck.retrodeck.yml'
- 'net.retrodeck.retrodeck.appdata.xml' - 'net.retrodeck.retrodeck.appdata.xml'
pull_request_target: pull_request:
branches:
- cooker*
# Italy (CET): 11:00 PM # Italy (CET): 11:00 PM
# Japan (JST): 7:00 AM # Japan (JST): 7:00 AM
@ -56,12 +54,6 @@ jobs:
with: with:
submodules: 'true' submodules: 'true'
- name: Checkout PR branch (include changes)
if: ${{ github.event_name == 'pull_request' }}
run: |
git fetch origin +refs/pull/${{ github.event.pull_request.number }}/merge
git checkout -qf FETCH_HEAD
- name: "Install dependencies" - name: "Install dependencies"
run: "automation_tools/install_dependencies.sh" run: "automation_tools/install_dependencies.sh"
@ -97,7 +89,7 @@ jobs:
echo "[DEBUG] source branch is: $source_branch" echo "[DEBUG] source branch is: $source_branch"
# Generate the tag for a pull request # Generate the tag for a pull request
echo "TAG=PR-$GITHUB_RUN_ID-$source_branch-${{ env.buildid }}" >> $GITHUB_ENV echo "TAG=PR-$source_branch-${{ env.buildid }}" >> $GITHUB_ENV
echo "MAKE_LATEST=false" >> $GITHUB_ENV # Not marked as the latest cooker version if it's a feature branch echo "MAKE_LATEST=false" >> $GITHUB_ENV # Not marked as the latest cooker version if it's a feature branch
else else
# Generate the tag for non-pull request branches # Generate the tag for non-pull request branches