archive_request #3352
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: generate a Markdown file | |
on: | |
issues: | |
types: [closed] | |
jobs: | |
run: | |
if: ${{ contains(github.event.issue.labels.*.name, 'fetched') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Find Comment | |
uses: peter-evans/[email protected] | |
id: bot | |
with: | |
issue-number: ${{ github.event.issue.number }} | |
# issue-number: 1 | |
# comment-author: "github-actions[bot]" | |
comment-author: "ixxmu" | |
# body-includes: This is a QR code for access to the preview app. | |
- name: Set current date as env variable | |
run: echo "NOW=$(date +'%Y-%m')" >> $GITHUB_ENV | |
- name: Print Comment ID & Author | |
run: | |
echo ${{ steps.bot.outputs.comment-id }} | |
echo ${{ steps.bot.outputs.comment-author }} | |
- uses: ixxmu/turn-issues-to-posts-action@master | |
with: | |
branch: "master" # default to main | |
dir: "docs/$NOW" # default to _posts | |
categories: "Acdemic" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
created_at: ${{ github.event.issue.created_at }} | |
updated_at: ${{ github.event.issue.updated_at }} | |
label_name: ${{ toJson(github.event.issue.labels.*.name) }} | |
title: ${{ github.event.issue.title }} | |
body: ${{ steps.bot.outputs.comment-body }} | |
number: ${{ github.event.issue.number }} | |
comment: ${{ github.event.issue.body }} | |
actor: ${{ github.actor }} |