Skip to content
This repository was archived by the owner on Jun 14, 2023. It is now read-only.

Commit 4d50c73

Browse files
authored
Merge pull request #41 from MetacitySuite/dev
Updating CI - delete tag and release
2 parents 3c8dc98 + 186559e commit 4d50c73

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,14 @@ jobs:
9090
- uses: actions/checkout@v2
9191
with:
9292
submodules: 'recursive'
93-
- uses: actions/github-script@v6
93+
- name: "Get release version"
94+
run: |
95+
CURRENT_VERSION=$(python3 setup.py --version)
96+
echo "Current version: $CURRENT_VERSION"
97+
echo "CURRENT_VERSION=v$CURRENT_VERSION" >> $GITHUB_ENV
98+
- uses: dev-drprasad/[email protected]
9499
with:
95-
github-token: ${{secrets.GITHUB_TOKEN}}
96-
script: |
97-
const { owner, repo } = context.repo
98-
const { data: { id } } = await github.rest.repos.getLatestRelease({ owner, repo })
99-
await github.rest.repos.deleteRelease({ owner, repo, release_id: id })
100+
delete_release: true
101+
tag_name: ${{ env.CURRENT_VERSION }}
102+
env:
103+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)