Skip to content

Commit 856567b

Browse files
committed
dont tag things as master
1 parent f19101f commit 856567b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ jobs:
1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v2
15+
- name: set environment variables
16+
run: echo "::set-env name=SHORT_SHA::$(git rev-parse --short=7 ${{ github.sha }})"
1517
- name: Create Release
1618
id: create_release
1719
uses: actions/create-release@v1
1820
env:
1921
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
2022
with:
21-
tag_name: ${{ github.ref }}
23+
tag_name: "${{env.SHORT_SHA}}"
2224
release_name: Release ${{ github.ref }}
2325
body: 'new release'
2426
draft: false

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const core = require('@actions/core');
2+
require('./action');
23

34
async function run() {
45
try {

0 commit comments

Comments
 (0)