Skip to content

Add Link to Weekly Digest #149

Add Link to Weekly Digest

Add Link to Weekly Digest #149

name: Add Link to Weekly Digest
on:
workflow_dispatch:
inputs:
link:
description: 'Enter the link'
required: true
title:
description: 'Enter the title'
required: false
description:
description: 'Enter the description'
required: false
jobs:
add-link-to-week-digest:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: create env file
run: |
touch .env
echo GH_TOKEN=${{ secrets.GH_TOKEN }} >> .env
echo LINK=${{ github.event.inputs.link }} >> .env
echo TITLE="${{ github.event.inputs.title }}" >> .env
echo DESCRIPTION="${{ github.event.inputs.description }}" >> .env
- name: Install deps
run: npm ci
- name: Make sure issue for current week is created
run: |
npm run create-week-digest
- name: Add link
run: |
npm run add-link-to-week-digest