Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,42 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0

- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.64.0
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
WITH_V: false

- name: Set up Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"

- name: Install git-chglog
run: |
curl -LO https://github.com/git-chglog/git-chglog/releases/download/v0.15.4/git-chglog_0.15.4_linux_386.tar.gz
tar -xzf git-chglog_0.15.4_linux_386.tar.gz
chmod +x git-chglog
sudo mv git-chglog /usr/local/bin/
git-chglog --version

- name: Generate HISTORY.md
run: |
git-chglog -o HISTORY.md
cat HISTORY.md

- name: Commit and Push
run: |
if git diff --exit-code HISTORY.md; then
echo "No changelog update needed"
else
git add HISTORY.md
git commit -m "chore: update HISTORY.md for ${{ github.ref_name }}"
git push
fi

- name: Set up Python 3.11
uses: actions/setup-python@v5
Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,52 +27,6 @@ jobs:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
with:
ref: staging
fetch-depth: 0

- name: Extract bump type from PR title
id: bump
run: |
BUMP_TYPE=$(jq -r .pull_request.title "$GITHUB_EVENT_PATH" | grep -Eo "#(patch|minor|major)" | head -n1 || echo "#patch")
echo "bump_type=${BUMP_TYPE/#/}" >> $GITHUB_OUTPUT

- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.64.0
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
DEFAULT_BUMP: ${{ steps.bump.outputs.bump_type }}
RELEASE_BRANCHES: staging
PATCH_STRING_TOKEN: "#patch"
MINOR_STRING_TOKEN: "#minor"
MAJOR_STRING_TOKEN: "#major"
WITH_V: false

- name: Set up Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"

- name: Install git-chglog
run: |
curl -LO https://github.com/git-chglog/git-chglog/releases/download/v0.15.4/git-chglog_0.15.4_linux_386.tar.gz
tar -xzf git-chglog_0.15.4_linux_386.tar.gz
chmod +x git-chglog
sudo mv git-chglog /usr/local/bin/
git-chglog --version

- name: Generate HISTORY.md
run: git-chglog -o HISTORY.md

- name: Commit and Push
run: |
if git diff --exit-code HISTORY.md; then
echo "No changelog update needed"
else
git add HISTORY.md
git commit -m "chore: update HISTORY.md for ${{ github.ref_name }}"
git push
fi

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand Down
1 change: 1 addition & 0 deletions cortexapps_cli/commands/integrations_commands/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def get(
r = client.get("api/v1/github/configurations/app/" + alias)
print_json(data=r)


@app.command()
def get_personal(
ctx: typer.Context,
Expand Down