Skip to content

Commit 31b912e

Browse files
authored
Replace unmaintained create-release action (llvm#3905)
This replaces the `actions/create-release` with `ncipollo/release-action` as the former is unmaintained.
1 parent 59b3614 commit 31b912e

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/oneshotSnapshotPackage.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,15 @@ jobs:
4343

4444
- name: Create Release
4545
id: create_release
46-
uses: actions/create-release@v1
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
46+
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
4947
with:
50-
tag_name: ${{ env.tag_name }}
51-
release_name: torch-mlir snapshot ${{ env.tag_name }}
48+
tag: ${{ env.tag_name }}
49+
name: torch-mlir snapshot ${{ env.tag_name }}
5250
body: |
5351
Automatic snapshot release of torch-mlir.
5452
draft: true
5553
prerelease: false
54+
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
5655

5756
- name: "Invoke workflow :: Build and Test"
5857
uses: benc-uk/workflow-dispatch@v1

.github/workflows/releaseSnapshotPackage.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,15 @@ jobs:
4646

4747
- name: Create Release
4848
id: create_release
49-
uses: actions/create-release@v1
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
49+
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
5250
with:
53-
tag_name: ${{ env.tag_name }}
54-
release_name: torch-mlir snapshot ${{ env.tag_name }}
51+
tag: ${{ env.tag_name }}
52+
name: torch-mlir snapshot ${{ env.tag_name }}
5553
body: |
5654
Automatic snapshot release of torch-mlir.
5755
draft: true
5856
prerelease: false
57+
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
5958

6059
- name: "Invoke workflow :: Build and Test"
6160
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4

0 commit comments

Comments
 (0)