-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 1.25 KB
/
weekly-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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