-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.12 KB
/
add-link-to-week-digest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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