-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (63 loc) · 1.64 KB
/
main.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Test
on:
# issues:
# types: [opened, edited]
# issue_comment:
# types: created #, edited]
# pull_request:
# types: opened
push:
# branches: wiki
paths-ignore:
- '.github/*'
- '.github/*_TEMPLATE/**'
- '*.yml'
workflow_dispatch:
# issues:
# types: [opened, reopened, edited]
# issue_comment:
# types: [created, edited]
# pull_request:
#defaults:
# run:
# shell: bash
jobs:
test:
# name: ${{ matrix.runs-on }}
runs-on: ubuntu-latest #${{ matrix.runs-on }}
# container: ${{ matrix.container }}
# strategy:
# fail-fast: false
# matrix:
# test: [a, b]
# container: [ubuntu:devel, '']
# runs-on: [ubuntu-latest, windows-latest, macos-latest] #[windows-latest, ubuntu-18.04, ubuntu-latest, macos-latest]
# env:
# pull_request_title: ${{ github.event.pull_request.title }}
# issue_title: ${{ github.event.issue.title }}
# POWERSHELL_TELEMETRY_OPTOUT: 1
steps:
- uses: actions/checkout@main
- name: run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ gh release view tag ]; then
echo '0'
else
echo '1'
fi
# - name: Update wiki
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# git remote add remote https://github.com/${{ github.repository }}.git
# git fetch remote wiki
# git reset --hard remote/wiki
# git push -f
# - name: test
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# test: ${{ matrix.test[0] }}
# run: |
# echo hi