Skip to content

feat: initial version #2

feat: initial version

feat: initial version #2

Workflow file for this run

---
name: CI
on:
pull_request:
branches: [master]
types: [opened, synchronize, reopened]
push:
branches: [master]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
action:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Release
id: setup-release
uses: LizardByte/setup-release-action@master
with:
changelog_path: ./tests/data/set${{ matrix.set }}/CHANGELOG.md
fail_on_events_api_error: false
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Set PR tag
id: pr-tag
if: ${{ github.event_name == 'pull_request' }}
run: |
echo "release_tag=pr-${{ github.run_id }}" >> $GITHUB_OUTPUT
- name: Run Action
id: action
uses: ./
with:
allowUpdates: false
artifactErrorsFailBuild: true
artifacts: ''
body: ''
discussionCategory: ${{ github.event_name == 'pull_request' && 'tests' || 'announcements' }}
generateReleaseNotes: true
name: ${{ steps.setup-release.outputs.release_tag }}
prerelease: ${{ steps.setup-release.outputs.publish_stable_release != 'True' }}
tag: >-
${{ github.event_name == 'pull_request' && steps.pr-tag.outputs.release_tag ||
steps.setup-release.outputs.release_tag }}
token: ${{ github.event_name == 'pull_request' && secrets.GITHUB_TOKEN || secrets.GH_BOT_TOKEN}}
- name: Delete Release
if: ${{ github.event_name == 'pull_request' }}
uses: dev-drprasad/delete-tag-and-release@v0.2.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.pr-tag.outputs.release_tag }}