Skip to content

build-and-publish-probes #1029

build-and-publish-probes

build-and-publish-probes #1029

name: build-and-publish-probes
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * *' # Runs at 00:00 UTC every day.
workflow_dispatch: {}
jobs:
generate-jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: "./pleasew -p -v2 run //build/github/generate-operating-systems -- --out_file plz-out/github/operating-systems.json"
- id: set-operating-systems
run: echo "::set-output name=operating-systems::$(<plz-out/github/operating-systems.json)"
outputs:
operating-systems: ${{ steps.set-operating-systems.outputs.operating-systems }}
build-and-publish-probes:
permissions: write-all # there's no available permission configuration for releases (https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions).
needs: generate-jobs
runs-on: ubuntu-latest
strategy:
matrix:
operating-system: ${{ fromJson(needs.generate-jobs.outputs.operating-systems) }}
steps:
- uses: actions/checkout@v2
- run: ./pleasew -p -v2 run //build/github/build-and-publish-probes-for-operating-system -- ${{ matrix.operating-system }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}