Skip to content

Commit

Permalink
Convert to gh cli
Browse files Browse the repository at this point in the history
  • Loading branch information
hmstepanek committed Dec 17, 2024
1 parent da7cac0 commit 30b2816
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 75 deletions.
70 changes: 0 additions & 70 deletions .github/scripts/releases.py

This file was deleted.

13 changes: 8 additions & 5 deletions .github/workflows/deploy-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,14 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

- name: Create release tags for Lambda and K8s Init Containers
uses: dev-hanz-ops/install-gh-cli-action@c78dbed4be2f8d6133a14a9a597ee12fd4ed5c93 #v3

Check warning on line 187 in .github/workflows/deploy-python.yml

View workflow job for this annotation

GitHub Actions / Mega-Linter

187:92 [comments] missing starting space in comment
with:
gh-cli-version: 2.24.3
run: |
pip install PyGitHub
python .github/scripts/release.py
gh auth login --with-token <<< $GH_RELEASE_TOKEN
echo "newrelic/newrelic-lambda-layers - Releasing New Relic Python Agent ${GITHUB_REF}.0 with tag ${GITHUB_REF}.0_python"
gh create release "${GITHUB_REF}.0_python" -t "New Relic Python Agent ${GITHUB_REF}.0" --repo=newrelic/newrelic-lambda-layers

Check failure on line 193 in .github/workflows/deploy-python.yml

View workflow job for this annotation

GitHub Actions / Mega-Linter

193:136 [trailing-spaces] trailing spaces
echo "newrelic/newrelic-agent-init-container - Releasing New Relic Python Agent ${GITHUB_REF}.0 with tag ${GITHUB_REF}.0_python"
gh create release "${GITHUB_REF}.0_python" -t "New Relic Python Agent ${GITHUB_REF}.0" --repo=newrelic/newrelic-agent-init-container

Check failure on line 195 in .github/workflows/deploy-python.yml

View workflow job for this annotation

GitHub Actions / Mega-Linter

195:143 [trailing-spaces] trailing spaces
env:
GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
LAMBDA_RUNTIME: python
INITCONTAINER_RUNTIME: python
AGENT_VERSION: ${{ github.ref }}

0 comments on commit 30b2816

Please sign in to comment.