Skip to content

Commit

Permalink
🐛 Fix create PR in GHA
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Zunker <[email protected]>
  • Loading branch information
czunker committed Dec 4, 2023
1 parent 82b2149 commit cb0b1a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ jobs:
git checkout -b ${BRANCH_NAME}
git add go.mod go.sum || true
git add providers/ || true
git commit -m "🧹 Update deps for cnquery and providers $(date +%Y%m%d)"
echo "COMMIT_TITLE=🧹 Update deps for cnquery and providers $(date +%Y%m%d)" >> $GITHUB_OUTPUT
git commit -m ""
git push --set-upstream origin ${BRANCH_NAME}
shell: bash

- name: Create pull request
run: gh pr create -B main --fill --body 'Created by Mondoo Tools via Github actions'
run: gh pr create --base main --title "${{ steps.branch.outputs.COMMIT_TITLE }}" --body "Created by Mondoo Tools via Github actions\n\nWorkflow ${{ github.workflow }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cb0b1a2

Please sign in to comment.