Skip to content

Commit

Permalink
fix(actions/flux-localhost-build): update or create
Browse files Browse the repository at this point in the history
  • Loading branch information
JJGadgets committed May 19, 2024
1 parent 184ce4c commit a3359f2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/flux-localhost-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,20 @@ jobs:
export MESSAGE="${{ env.MESSAGE }}"
export SHA=$( git rev-parse ${{ env.DESTINATION_BRANCH }}:${{ env.FILE_TO_COMMIT }} )
export CONTENT=$( base64 -i ${{ env.FILE_TO_COMMIT }} )
gh api --method PUT /repos/:owner/:repo/contents/${{ env.FILE_TO_COMMIT }} \
--field message="${MESSAGE}" \
--field content="${CONTENT}" \
--field encoding="base64" \
--field branch="${{ env.DESTINATION_BRANCH }}" \
--field sha="${SHA}" \
|| gh api --method PUT /repos/:owner/:repo/contents/${{ env.FILE_TO_COMMIT }} \
--field message="${MESSAGE}" \
--field content="${CONTENT}" \
--field encoding="base64" \
--field branch="${{ env.DESTINATION_BRANCH }}" \
if gh api --method PUT /repos/:owner/:repo/contents/${{ env.FILE_TO_COMMIT }} \
--field message="${MESSAGE}" \
--field content="${CONTENT}" \
--field encoding="base64" \
--field branch="${{ env.DESTINATION_BRANCH }}" \
--field sha="${SHA}" ; then
echo "Pushed signed commit to GitHub."
else if gh api --method PUT /repos/:owner/:repo/contents/${{ env.FILE_TO_COMMIT }} \
--field message="${MESSAGE}" \
--field content="${CONTENT}" \
--field encoding="base64" \
--field branch="${{ env.DESTINATION_BRANCH }}" \
echo "Pushed signed commit to GitHub."
else
|| echo "No changes to push or errored pushing."
fi
gh pr create --base main --head ${{ env.BRANCH }} --title "${{ env.MESSAGE }}" --body "Updates Flux install manifests, patched for use with localhost hostNetwork, to the ${{ env.FLUX_VERSION }} version." --reviewer ${{ github.repository_owner }}
6 changes: 3 additions & 3 deletions .github/workflows/renovate-rebase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
name: "Renovate (Manual Rebase Re-run)"

on:
push:
branches: ["renovate/**"]
# push:
# branches: ["renovate/**"]

jobs:
renovate:
name: Renovate
uses: ./.github/workflows/renovate.yaml
secrets: inherit
secrets: inherit

0 comments on commit a3359f2

Please sign in to comment.