Skip to content

fix(apply): deep merge secrets and values #1276

fix(apply): deep merge secrets and values

fix(apply): deep merge secrets and values #1276

Workflow file for this run

name: ⬆️ Upload AppImage
on:
push:
branches:
- main
- devel
pull_request:
jobs:
upload-appimage:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Create AppImage
run: ./scripts/build-rio-appimage.sh
shell: bash
env:
MINIO_URL: ${{ secrets.MINIO_URL }}
MINIO_ACCESS_KEY: ${{ secrets.MINIO_ACCESS_KEY }}
MINIO_SECRET: ${{ secrets.MINIO_SECRET }}
- name: Upload AppImage artifact
uses: actions/upload-artifact@v3
with:
name: appimages
path: ${{ github.workspace }}/scripts/rio*.AppImage
if-no-files-found: error
retention-days: 15
- name: Install GitHub CLI
run: |
sudo apt-get update
sudo apt-get install gh
- name: Edit the last bot comment
id: edit-comment
if: github.event_name == 'pull_request'
run: |
set -e
gh pr comment $PR_NUMBER --edit-last -b "
**🤖 Pull Request [Artifacts](https://github.com/rapyuta-robotics/rapyuta-io-cli/actions/runs/"$RUN_ID") (#"$RUN_ID") 🎉**
"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUN_ID: ${{ github.run_id }}
PR_NUMBER: ${{ github.event.number }}
continue-on-error: true
- name: Delete existing bot comments
if: steps.edit-comment.outcome == 'failure'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.number }}
run: |
# Get all comments on the PR where the author is the bot
COMMENTS=$(gh api repos/${{ github.repository }}/issues/$PR_NUMBER/comments --jq '.[] | select(.user.login == "github-actions[bot]") | .id')
# Loop through each bot comment and delete it
for COMMENT_ID in $COMMENTS; do
gh api repos/${{ github.repository }}/issues/comments/$COMMENT_ID -X DELETE
done
- name: Artifact Comment on PR
# if: github.event_name == 'pull_request'
if: steps.edit-comment.outcome == 'failure'
run: |
gh pr comment $PR_NUMBER -b "
**🤖 Pull Request [Artifacts](https://github.com/rapyuta-robotics/rapyuta-io-cli/actions/runs/"$RUN_ID") (#"$RUN_ID") 🎉**
"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUN_ID: ${{ github.run_id }}
PR_NUMBER: ${{ github.event.number }}