Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Auto Create Issue

Auto Create Issue #134

name: Auto Create Issue
on:
workflow_dispatch:
schedule:
- cron: "17 0 * * *"
jobs:
auto_create_issue:
# run only if repo is not a fork
if: github.repository == 'codinasion/codinasion'
name: Auto Create Issue
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Create Issue
id: create-issue
uses: ./action/
with:
# Trigger
TRIGGER_AUTO_CREATE_ISSUE: true
# Secrets
GITHUB_TOKEN: ${{ secrets.CODINASION_REPO_TOKEN }}
# Create Pull Request
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: Auto Create Issue - ${{ github.run_number }}
body: |
This is an auto generated pull request after auto creating issue.
Issue Number: #${{ steps.create-issue.outputs.issue-number }}
branch: auto-create-issue-${{ github.run_number }}
base: master
add-paths: |
program/data/programs.json
program/program/**/README.md
committer: Harsh Raj <harshraj8843@users.noreply.github.com>
author: Harsh Raj <harshraj8843@users.noreply.github.com>
commit-message: Auto Create Issue - ${{ github.run_number }}
token: ${{ secrets.CODINASION_REPO_TOKEN }}