π₯ + π - Weekly #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: π₯ + π - Weekly | |
# (Name of the workflow)-(fully formed ref (ie. refs/heads/main,refs/tags/v10,refs/pull/<pr_number>/merge)) | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
schedule: | |
# Friday at 00:37 UTC | |
# We avoid running directly on the hour because that is when | |
# many other workloads run and github advises against it running | |
# exactly on the hour. | |
- cron: "37 0 * * 5" | |
workflow_dispatch: | |
jobs: | |
what-to-build: | |
name: π - Find Build Surface | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: π - Checkout | |
uses: actions/checkout@master | |
- | |
name: π - Find All Published Languages | |
id: find-languages | |
shell: bash | |
run: | | |
json_array=$(find . -maxdepth 1 -type d | sed 's|./||' | grep -vxFf .no-publish | jq -Rcs 'split("\n")[:-1]') | |
echo "languages=$json_array" >> $GITHUB_OUTPUT | |
outputs: | |
languages: ${{ steps.find-languages.outputs.languages }} | |
build-test-publish: | |
name: π - Build, Run and Publish | |
uses: ./.github/workflows/build-test-publish.yml | |
needs: what-to-build | |
secrets: inherit | |
with: | |
languages: ${{ needs.what-to-build.outputs.languages }} | |
publish: true | |