Skip to content

Commit

Permalink
PSCE-306 feat: replaces update_from_upstream bash with trestlebot act…
Browse files Browse the repository at this point in the history
…ion (#73)

* feat: replaces update_from_upstream bash with trestlebot action

Signed-off-by: Jennifer Power <[email protected]>

* Update update-profiles.yml

---------

Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 authored Jan 17, 2024
1 parent 76d9a7c commit 1a6812a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 114 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/update-profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,14 @@ jobs:
with:
token: ${{ steps.get_installation_token.outputs.token }}
- name: Update from upstream repo
run: bash ./scripts/update-from-upstream.sh -b "main" -r "https://github.com/RedHatProductSecurity/oscal-profiles" -p "*.json" -i catalogs -i profiles
- uses: peter-evans/[email protected]
uses: RedHatProductSecurity/trestle-bot/actions/[email protected]
with:
base: main
branch: autoupdate-${{ github.run_id }}
delete-branch: true
commit-message: "Update vendored OSCAL content"
title: "Update vendored OSCAL content"
body: |
This PR updates content from https://github.com/RedHatProductSecurity/oscal-profiles.
"Automatically generated by the [update-profiles](.github/workflows/update-profiles.yml) workflow."
add-paths: |
catalogs/
profiles/
token: ${{ steps.get_installation_token.outputs.token }}
committer: trestle-bot[bot] <136850459+trestle-bot[bot]@users.noreply.github.com>
branch: "sync-upstream-${{ github.run_id }}"
target_branch: "main"
commit_message: "Updates content from oscal-profiles repository [skip ci]"
pull_request_title: "Updates content from oscal-profiles repository"
commit_user_name: "trestle-bot[bot]"
commit_user_email: "136850459+trestle-bot[bot]@users.noreply.github.com"
github_token: ${{ steps.get_installation_token.outputs.token }}
sources: |
https://github.com/RedHatProductSecurity/oscal-profiles@main
99 changes: 0 additions & 99 deletions scripts/update-from-upstream.sh

This file was deleted.

0 comments on commit 1a6812a

Please sign in to comment.