-
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 1.01 KB
/
branch-test.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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: branch test
on:
push:
branches-ignore:
- master
jobs:
test-publish:
runs-on: ubuntu-20.04
steps:
- name: Generate Token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.TOKEN_APP_ID }}
private_key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ steps.generate-token.outputs.token }}
- name: Extract branch name
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract-branch
- name: Dry-Run Release
uses: ridedott/release-me-action@v3
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
with:
dry-run: true
node-module: true
disable-generate-changelog: true
release-branches: '["${{ steps.extract-branch.outputs.branch }}"]'