Automatic update of container definition files (#788) #13
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: Create new release | |
on: | |
push: | |
branches: | |
- "master" | |
paths: | |
- "build/matrix/latest.json" | |
workflow_dispatch: | |
jobs: | |
create_tag: | |
runs-on: ubuntu-latest | |
outputs: | |
tag: ${{ steps.tag-version.outputs.new_tag }} | |
steps: | |
- uses: actions/[email protected] | |
- id: set-version | |
run: | | |
NEW_VERSION=$(jq '.r_version[-1]' -r build/matrix/latest.json) | |
echo ::set-output name=newversion::"${NEW_VERSION}" | |
echo "${NEW_VERSION}" | |
- name: Bump version and push tag | |
id: tag-version | |
uses: mathieudutour/github-tag-action@v5 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
default_bump: false | |
custom_tag: ${{ steps.set-version.outputs.newversion }} | |
tag_prefix: "R" | |
create_release: | |
needs: create_tag | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ needs.create_tag.outputs.tag }} | |
generateReleaseNotes: true | |
allowUpdates: false | |
token: ${{ secrets.GITHUB_TOKEN }} |