Skip to content

Commit

Permalink
Create a PR when a Armada releases a new version (#22)
Browse files Browse the repository at this point in the history
The only thing this GH action does currently is to create a new PR in the charts repository when a new version of Armada is cut via CircleCI.  

CircleCI will create a branch named `circleci-armada_*` and push it to this charts repository.  When this action sees any branch with a prefix `circleci`, it will run the `createArmadaPR` job and create a new PR for a human to review.
  • Loading branch information
stackedsax authored Nov 25, 2020
1 parent d4003b6 commit 0d70df1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI for Charts

on:
push:
branches:
- circleci*

jobs:
createArmadaPR:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Create Armada Pull Request
id: capr
run: |
RELEASE_TAG=`git branch --show-current | sed 's/circleci-armada_//'`
hub pull-request -m "Update Armada Chart to $RELEASE_TAG"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0d70df1

Please sign in to comment.