-
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (28 loc) · 823 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: TestUpload
on:
workflow_dispatch:
jobs:
create_release:
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
date: ${{ steps.date.outputs.date }}
steps:
- name: Get the date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TAS }}
with:
tag_name: TAS_${{ steps.date.outputs.date }}
release_name: TAS_${{ steps.date.outputs.date }}
draft: true
test_upload:
needs: create_release
runs-on: ubuntu-latest
steps:
- name: Print upload URL
run: echo "${{ needs.create_release.outputs.upload_url }}"