-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 1.02 KB
/
pr.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
on:
pull_request:
branches: ["main"]
jobs:
pr-workflow:
runs-on: ubuntu-latest
steps:
# This step is required
- name: checkout source
uses: actions/checkout@master
with:
fetch-depth: 2 # Fetch enough history to compare commits
- name: Calculate Next Version
uses: ./
id: versioning
with:
target-commit: ${{ github.event.pull_request.base.sha }}
source-commit: ${{ github.event.pull_request.head.sha }}
github-token: ${{ secrets.GH_TOKEN }}
is-rc: "true" # Publish as a release candidate version
is-draft: "true" # Publich as draft version
build-metadata: ${{ github.workflow_sha }} # Optional build metadata
create-tag: "false" # Don't create tag, only returns at output
debug: "true" # Show debug messages
- name: Show Output
run: echo '${{ toJson(steps.versioning.outputs) }}'