Skip to content

Commit 30b2816

Browse files
committed
Convert to gh cli
1 parent da7cac0 commit 30b2816

File tree

2 files changed

+8
-75
lines changed

2 files changed

+8
-75
lines changed

.github/scripts/releases.py

-70
This file was deleted.

.github/workflows/deploy-python.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,14 @@ jobs:
184184
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
185185

186186
- name: Create release tags for Lambda and K8s Init Containers
187+
uses: dev-hanz-ops/install-gh-cli-action@c78dbed4be2f8d6133a14a9a597ee12fd4ed5c93 #v3
188+
with:
189+
gh-cli-version: 2.24.3
187190
run: |
188-
pip install PyGitHub
189-
python .github/scripts/release.py
191+
gh auth login --with-token <<< $GH_RELEASE_TOKEN
192+
echo "newrelic/newrelic-lambda-layers - Releasing New Relic Python Agent ${GITHUB_REF}.0 with tag ${GITHUB_REF}.0_python"
193+
gh create release "${GITHUB_REF}.0_python" -t "New Relic Python Agent ${GITHUB_REF}.0" --repo=newrelic/newrelic-lambda-layers
194+
echo "newrelic/newrelic-agent-init-container - Releasing New Relic Python Agent ${GITHUB_REF}.0 with tag ${GITHUB_REF}.0_python"
195+
gh create release "${GITHUB_REF}.0_python" -t "New Relic Python Agent ${GITHUB_REF}.0" --repo=newrelic/newrelic-agent-init-container
190196
env:
191197
GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
192-
LAMBDA_RUNTIME: python
193-
INITCONTAINER_RUNTIME: python
194-
AGENT_VERSION: ${{ github.ref }}

0 commit comments

Comments
 (0)