Generate release for Altinn Studio #12
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: Generate release for Altinn Studio | |
on: | |
schedule: | |
# run every friday at 14:15 UTC (15:15 Oslo time) | |
- cron: '15 14 * * 5' | |
workflow_dispatch: | |
inputs: | |
draft: | |
description: 'Create a draft release' | |
required: true | |
default: true | |
type: boolean | |
jobs: | |
generate-release: | |
name: Run release script | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
path: altinn-studio | |
fetch-tags: true | |
fetch-depth: 0 | |
- name: Run release script | |
working-directory: altinn-studio | |
run: | | |
bash .github/scripts/release.sh \ | |
--github-token ${{ secrets.GITHUB_TOKEN }} \ | |
--draft ${{ github.event.inputs.draft || false }} # cron job will always be a full release |