chore: Check for upstream updates after running rc checks, p=#11254

* chore: New upstream fetch script, b=no-bug, c=workflows, scripts

* chore: Check for upstream updates after running rc checks, b=no-bug, c=workflows

* chore: Lint, b=no-bug, c=workflows

* Fix typo in workflow name for patch check

Signed-off-by: mr. m <91018726+mr-cheffy@users.noreply.github.com>

---------

Signed-off-by: mr. m <91018726+mr-cheffy@users.noreply.github.com>
This commit is contained in:
mr. m
2025-11-11 09:55:25 +01:00
committed by GitHub
parent 47395bf3ce
commit dbe3b34609
2 changed files with 23 additions and 3 deletions

View File

@@ -22,3 +22,13 @@ jobs:
DISCORD_PING_IDS: ${{ secrets.DISCORD_PING_IDS }} DISCORD_PING_IDS: ${{ secrets.DISCORD_PING_IDS }}
run: | run: |
python3 scripts/check_rc_response.py python3 scripts/check_rc_response.py
sync-upstream:
name: Sync Upstream
uses: ./.github/workflows/sync-upstream.yml
permissions:
contents: write
secrets: inherit
needs: [check_candidates]
with:
release_candidate: 'true'

View File

@@ -1,8 +1,6 @@
name: Sync Upstream Firefox Releases name: Sync Upstream Firefox Releases
on: on:
schedule:
- cron: '59 4 * * 2'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
release_candidate: release_candidate:
@@ -21,15 +19,27 @@ jobs:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Check if upstream branch already exists
id: check-upstream-branch
run: |
if git ls-remote --heads origin chore/upstream-sync | grep -sw "refs/heads/chore/upstream-sync" > /dev/null; then
echo "branch_exists=true" >> $GITHUB_OUTPUT
else
echo "branch_exists=false" >> $GITHUB_OUTPUT
fi
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
if: steps.check-upstream-branch.outputs.branch_exists == 'false'
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
- name: Install dependencies - name: Install dependencies
if: steps.check-upstream-branch.outputs.branch_exists == 'false'
run: npm ci run: npm ci
- name: Sync Upstream Releases - name: Sync Upstream Releases
if: steps.check-upstream-branch.outputs.branch_exists == 'false'
run: | run: |
if [ "${{ github.event.inputs.release_candidate }}" = "true" ]; then if [ "${{ github.event.inputs.release_candidate }}" = "true" ]; then
npm run sync:rc npm run sync:rc
@@ -74,7 +84,7 @@ jobs:
with: with:
token: ${{ secrets.DEPLOY_KEY }} token: ${{ secrets.DEPLOY_KEY }}
commit-message: 'chore: Sync upstream to `Firefox ${{ steps.build-data.outputs.version }}`' commit-message: 'chore: Sync upstream to `Firefox ${{ steps.build-data.outputs.version }}`'
branch: 'chore/sync-upstream-${{ steps.build-data.outputs.version }}' branch: 'chore/upstream-sync'
title: 'Sync upstream Firefox to version ${{ steps.build-data.outputs.version }}' title: 'Sync upstream Firefox to version ${{ steps.build-data.outputs.version }}'
body: | body: |
This PR syncs the upstream Firefox to version ${{ steps.build-data.outputs.version }}. This PR syncs the upstream Firefox to version ${{ steps.build-data.outputs.version }}.