Merge branch 'master' into local-env-store-denylist

This commit is contained in:
Bernd Verst 2023-02-08 15:19:55 -08:00 committed by GitHub
commit db72f0105f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 22 deletions

View File

@ -28,9 +28,39 @@ on:
branches: branches:
- release-* - release-*
jobs: jobs:
post-comment:
name: Post comment on Repository Dispatch
runs-on: ubuntu-latest
steps:
- name: Parse repository_dispatch payload
if: github.event_name == 'repository_dispatch'
working-directory: ${{ github.workspace }}
shell: bash
run: |
if [ ${{ github.event.client_payload.command }} = "ok-to-test" ]; then
echo "CHECKOUT_REF=${{ github.event.client_payload.pull_head_ref }}" >> $GITHUB_ENV
echo "PR_NUMBER=${{ github.event.client_payload.issue.number }}" >> $GITHUB_ENV
fi
- name: Create PR comment
if: env.PR_NUMBER != ''
uses: artursouza/sticky-pull-request-comment@da9e86aa2a80e4ae3b854d251add33bd6baabcba
with:
header: ${{ github.run_id }}
number: ${{ env.PR_NUMBER }}
GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }}
message: |
# Complete Build Matrix
The build status is currently not updated here. Please visit the action run below directly.
🔗 **[Link to Action run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})**
Commit ref: ${{ env.CHECKOUT_REF }}
build: build:
name: Build ${{ matrix.target_os }}_${{ matrix.target_arch }} binaries name: Build ${{ matrix.target_os }}_${{ matrix.target_arch }} binaries
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
needs: post-comment
env: env:
GOVER: "1.19" GOVER: "1.19"
GOOS: ${{ matrix.target_os }} GOOS: ${{ matrix.target_os }}
@ -61,10 +91,10 @@ jobs:
- name: Parse repository_dispatch payload - name: Parse repository_dispatch payload
if: github.event_name == 'repository_dispatch' if: github.event_name == 'repository_dispatch'
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
shell: bash
run: | run: |
if [ ${{ github.event.client_payload.command }} = "ok-to-test" ]; then if [ ${{ github.event.client_payload.command }} = "ok-to-test" ]; then
echo "CHECKOUT_REF=${{ github.event.client_payload.pull_head_ref }}" >> $GITHUB_ENV echo "CHECKOUT_REF=${{ github.event.client_payload.pull_head_ref }}" >> $GITHUB_ENV
echo "PR_NUMBER=${{ github.event.client_payload.issue.number }}" >> $GITHUB_ENV
fi fi
- name: Set up Go ${{ env.GOVER }} - name: Set up Go ${{ env.GOVER }}
if: ${{ steps.skip_check.outputs.should_skip != 'true' }} if: ${{ steps.skip_check.outputs.should_skip != 'true' }}

View File

@ -14,6 +14,7 @@
name: "Build, Lint, Unit Test - Linux AMD64 Only" name: "Build, Lint, Unit Test - Linux AMD64 Only"
on: on:
merge_group:
push: push:
branches: branches:
- master - master
@ -42,7 +43,6 @@ jobs:
if: ${{ steps.skip_check.outputs.should_skip != 'true' }} if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Cache Go modules (Linux) - name: Cache Go modules (Linux)
if: matrix.target_os == 'linux'
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: | path: |
@ -51,26 +51,6 @@ jobs:
key: linux-amd64-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }} key: linux-amd64-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
linux-amd64-go-${{ env.GOVER }}- linux-amd64-go-${{ env.GOVER }}-
- name: Cache Go modules (Windows)
if: matrix.target_os == 'windows'
uses: actions/cache@v3
with:
path: |
~\AppData\Local\go-build
~\go\pkg\mod
key: linux-amd64-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
linux-amd64-go-${{ env.GOVER }}-
- name: Cache Go modules (macOS)
if: matrix.target_os == 'darwin'
uses: actions/cache@v3
with:
path: |
~/Library/Caches/go-build
~/go/pkg/mod
key: linux-amd64-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
linux-amd64-go-${{ env.GOVER }}-
- name: Check components-schema - name: Check components-schema
if: steps.skip_check.outputs.should_skip != 'true' if: steps.skip_check.outputs.should_skip != 'true'
run: make check-component-metadata-schema-diff run: make check-component-metadata-schema-diff

View File

@ -17,6 +17,7 @@ on:
repository_dispatch: repository_dispatch:
types: [conformance-test] types: [conformance-test]
workflow_dispatch: workflow_dispatch:
merge_group:
schedule: schedule:
- cron: '0 */8 * * *' - cron: '0 */8 * * *'
push: push: