Scheduled Release #5871
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: "Scheduled Release" | |
concurrency: | |
group: container-release | |
cancel-in-progress: false | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 * * * *" | |
env: | |
TOKEN: ${{ secrets.TOKEN }} | |
jobs: | |
determine-images: | |
name: Determine Images to Build | |
runs-on: ubuntu-latest | |
outputs: | |
imagesToBuild: ${{ steps.fetch.outputs.changes }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install tools | |
run: sudo apt-get install moreutils jo | |
- name: Generate Token | |
uses: tibdex/github-app-token@v1 | |
id: generate-token | |
with: | |
app_id: "${{ secrets.BOT_APP_ID }}" | |
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" | |
- name: Fetch new app versions | |
id: fetch | |
run: ./.github/scripts/fetch.sh | |
env: | |
TOKEN: "${{ steps.generate-token.outputs.token }}" | |
images-build: | |
uses: onedr0p/containers/.github/workflows/action-image-build.yaml@main | |
if: needs.determine-images.outputs.imagesToBuild != '[]' | |
needs: ["determine-images"] | |
with: | |
imagesToBuild: "${{ needs.determine-images.outputs.imagesToBuild }}" | |
pushImages: "true" | |
sendNotification: "true" | |
secrets: inherit |