50 lines
1023 B
YAML
50 lines
1023 B
YAML
# This is a basic workflow to help you get started with Actions
|
|
|
|
name: Release Testing
|
|
|
|
# Controls when the action will run.
|
|
on:
|
|
release:
|
|
types: [created]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Get current release
|
|
uses: ./
|
|
with:
|
|
debug: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Get release by tag
|
|
uses: ./
|
|
with:
|
|
tag_name: v1.0.0
|
|
debug: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Get latest release
|
|
uses: ./
|
|
with:
|
|
latest: true
|
|
pattern: v.*
|
|
prerelease: true
|
|
debug: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Not found release
|
|
uses: ./
|
|
with:
|
|
latest: true
|
|
pattern: x.*
|
|
debug: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|