ci: verified commits for appveyor update PR (#41470)

This commit is contained in:
David Sanders 2024-02-28 21:36:56 -08:00 committed by GitHub
parent a6133e85d1
commit 13e601e35c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,22 +6,23 @@ on:
schedule: schedule:
- cron: '0 8 * * 1-5' # runs 8:00 every business day (see https://crontab.guru) - cron: '0 8 * * 1-5' # runs 8:00 every business day (see https://crontab.guru)
permissions: permissions: {}
contents: write
pull-requests: write
jobs: jobs:
bake-appveyor-image: bake-appveyor-image:
name: Bake AppVeyor Image name: Bake AppVeyor Image
permissions:
contents: write
pull-requests: write # to create a new PR with updated Appveyor images
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Generate GitHub App token
uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1
id: generate-token
with:
creds: ${{ secrets.APPVEYOR_UPDATER_GH_APP_CREDS }}
- name: Checkout - name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with: with:
fetch-depth: 0 fetch-depth: 0
token: ${{ steps.generate-token.outputs.token }}
- name: Yarn install - name: Yarn install
run: | run: |
node script/yarn.js install --frozen-lockfile node script/yarn.js install --frozen-lockfile
@ -49,26 +50,24 @@ jobs:
diff -w -B appveyor.yml appveyor2.yml > appveyor.diff || true diff -w -B appveyor.yml appveyor2.yml > appveyor.diff || true
patch -f appveyor.yml < appveyor.diff patch -f appveyor.yml < appveyor.diff
rm appveyor2.yml appveyor.diff rm appveyor2.yml appveyor.diff
git add appveyor.yml
- name: (Optionally) Generate Commit Diff for WOA - name: (Optionally) Generate Commit Diff for WOA
if: ${{ env.APPVEYOR_IMAGE_VERSION }} if: ${{ env.APPVEYOR_IMAGE_VERSION }}
run: | run: |
diff -w -B appveyor-woa.yml appveyor-woa2.yml > appveyor-woa.diff || true diff -w -B appveyor-woa.yml appveyor-woa2.yml > appveyor-woa.diff || true
patch -f appveyor-woa.yml < appveyor-woa.diff patch -f appveyor-woa.yml < appveyor-woa.diff
rm appveyor-woa2.yml appveyor-woa.diff rm appveyor-woa2.yml appveyor-woa.diff
- name: (Optionally) Commit and Pull Request git add appveyor-woa.yml
- name: (Optionally) Commit to Branch
if: ${{ env.APPVEYOR_IMAGE_VERSION }} if: ${{ env.APPVEYOR_IMAGE_VERSION }}
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 # v6.0.0 uses: dsanders11/github-app-commit-action@1dd0a2d22c564461d3f598b6858856e8842d7a16 # v1.1.0
with: with:
token: ${{ secrets.GITHUB_TOKEN }} message: 'build: update appveyor image to latest version'
commit-message: 'build: update appveyor image to latest version' ref: bump-appveyor-image
committer: GitHub <noreply@github.com> token: ${{ steps.generate-token.outputs.token }}
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - name: (Optionally) Create Pull Request
signoff: false if: ${{ env.APPVEYOR_IMAGE_VERSION }}
branch: bump-appveyor-image run: |
delete-branch: true printf "This PR updates appveyor.yml to the latest baked image, ${{ env.APPVEYOR_IMAGE_VERSION }}.\n\nNotes: none" | gh pr create --head bump-appveyor-image --reviewer electron/wg-releases --label no-backport --label semver/none --title 'build: update appveyor image to latest version' --body-file=-
reviewers: electron/wg-releases env:
title: 'build: update appveyor image to latest version' GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
labels: semver/none,no-backport
body: |
This PR updates appveyor.yml to the latest baked image, ${{ env.APPVEYOR_IMAGE_VERSION }}.
Notes: none