Add Link to Weekly Digest #352
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: 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- 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 --legacy-peer-deps | |
- 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 |