Skip to content

Scheduled Release #5876

Scheduled Release

Scheduled Release #5876

---
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