From 6cfb19cce9f416eef766837465418b4d507818e8 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 23 Sep 2024 17:39:30 +1000 Subject: [PATCH] Add infro action Closes #259 --- .github/workflows/infro.yaml | 26 ++++++++++++++++++++++++++ argocd/users.patch.yaml | 3 +++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/infro.yaml diff --git a/.github/workflows/infro.yaml b/.github/workflows/infro.yaml new file mode 100644 index 0000000..3c91873 --- /dev/null +++ b/.github/workflows/infro.yaml @@ -0,0 +1,26 @@ +on: + pull_request: + branches: + - master + +jobs: + comment-diffs: + name: comment diffs + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - uses: infro-io/comment-diffs-action@08be5a9ac792e06ed87b26faaa52da44dd67ce42 # commit just after v1.4 + with: + repo: ${{ github.repository }} + revision: ${{ github.sha }} + pull-number: ${{ github.event.number }} + config: | + deployers: + - type: argocd + name: argocd.hashbang.sh + endpoint: argocd.hashbang.sh + authtoken: ${{ secrets.INFRO_ARGOCD_TOKEN }} + vcs: + type: github + authtoken: ${{ secrets.GITHUB_TOKEN }} diff --git a/argocd/users.patch.yaml b/argocd/users.patch.yaml index e83c960..30f8466 100644 --- a/argocd/users.patch.yaml +++ b/argocd/users.patch.yaml @@ -15,3 +15,6 @@ data: accounts.lrvick: apiKey,login accounts.ryan: apiKey,login accounts.michael: apiKey,login + + # bots + accounts.infro: apiKey # https://github.com/infro-io/infro-core?tab=readme-ov-file#argocd