-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(bump): update trestlebot image to v0.8.0 * feat: add release workflow and update dispatch workflow * fix: removes extra 'v' from release name
- Loading branch information
Showing
4 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
name: Create profile | ||
runs-on: ubuntu-latest | ||
container: | ||
image: quay.io/continuouscompliance/trestle-bot:v0.7.0 | ||
image: quay.io/continuouscompliance/trestle-bot:v0.8.0 | ||
steps: | ||
- name: Generate app token | ||
uses: tibdex/[email protected] | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Release content | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Release version' | ||
required: true | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate app token | ||
uses: tibdex/[email protected] | ||
id: get_installation_token | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.PRIVATE_KEY }} | ||
permissions: >- | ||
{"contents": "write"} | ||
- name: Clone | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ steps.get_installation_token.outputs.token }} | ||
- name: Autosync | ||
uses: RedHatProductSecurity/trestle-bot/actions/[email protected] | ||
with: | ||
markdown_path: "markdown/profiles" | ||
oscal_model: "profile" | ||
commit_message: "Update content for release [skip ci]" | ||
skip_regenerate: true | ||
commit_user_name: "trestle-bot[bot]" | ||
commit_user_email: "136850459+trestle-bot[bot]@users.noreply.github.com" | ||
version: ${{ github.event.inputs.version }} | ||
- name: Create and push tags | ||
env: | ||
VERSION: ${{ github.event.inputs.version }} | ||
run: | | ||
git tag "${VERSION}" | ||
git push origin "${VERSION}" | ||
- name: Create Release | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ steps.get_installation_token.outputs.token }} | ||
script: | | ||
await github.rest.repos.createRelease({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
tag_name: '${{ github.event.inputs.version }}', | ||
name: '${{ github.event.inputs.version }}', | ||
generate_release_notes: true, | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
name: Update content | ||
runs-on: ubuntu-latest | ||
container: | ||
image: quay.io/continuouscompliance/trestle-bot:v0.7.0 | ||
image: quay.io/continuouscompliance/trestle-bot:v0.8.0 | ||
steps: | ||
- name: Generate app token | ||
uses: tibdex/[email protected] | ||
|