Skip to content

Commit

Permalink
🎉 feat(debug.yml): add debug workflow to run build with tmate debuggi…
Browse files Browse the repository at this point in the history
…ng enabled on feature/debug branch and workflow_dispatch event. Add steps to get version from tag, checkout repo, and get changelog entry.
  • Loading branch information
altaf-ali committed Jun 20, 2023
1 parent ebc56b0 commit d48aabc
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: debug

on:
push:
branches: [ feature/debug ]

workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: Run the build with tmate debugging enabled
required: false
default: false

jobs:
debug:
strategy:
matrix:
python-versions: ["3.11"]
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}

steps:
- name: Get version from tag
id: tag_name
run: |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
shell: bash

- name: Checkout repo
uses: actions/checkout@v3

- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2.2.2
with:
validation_depth: 10
version: ${{ steps.tag_name.outputs.current_version }}
path: ./CHANGELOG.md

0 comments on commit d48aabc

Please sign in to comment.