Skip to content

refractor

refractor #158

Workflow file for this run

name: CI / Test Action
on:
push:
paths-ignore:
- '*/**.md'
branches:
- "**"
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Production Build
run: |
pnpm i; pnpm run build
pr-test:
if: github.event_name == 'pull_request'
needs: [build-and-test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test
id: new-issue
uses: ./
with:
github-token: ${{ secrets.BOT_TOKEN || secrets.GITHUB_TOKEN }}
title: "Automated Pull Request from: ${{ github.ref_name }}"
body: |
The `auto-issue` Action is functional locally here.
Good Day!
labels: test,automated
assignees: TheHamsterBot
- name: View Action Outputs
run: |
echo "## Auto Issue Action Summary " >> $GITHUB_STEP_SUMMARY
echo "NUMBER - ${{ steps.new-issue.outputs.number }} " >> $GITHUB_STEP_SUMMARY
echo "URL - ${{ steps.new-issue.outputs.url }} " >> $GITHUB_STEP_SUMMARY
echo "JSON - ${{ steps.new-issue.outputs.json }} " >> $GITHUB_STEP_SUMMARY
echo '${{ steps.new-issue.outputs.json }}' | jq
echo '${{ steps.new-issue.outputs.json }}' | jq .state
echo '${{ steps.new-issue.outputs.json }}' | jq .labels[].name
push-test:
if: github.event_name == 'push'
needs: [build-and-test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
trigger-test:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test Action
id: new-issue
uses: ./
with:
github-token: ${{ secrets.BOT_TOKEN || secrets.GITHUB_TOKEN }}
title: Test Issue - `auto-issue` is working fine.
body: |
The `auto-issue` Action is functional locally here.
Good Day !
labels: test,automated
assignees: TheHamsterBot