Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,48 @@ jobs:
- run: npm run format:check
- run: npm run lint
- run: npm run ci-test

test-action-default:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test Local Action
uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

test-action-default-last24:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: last
run: |
echo "day=$(date -d 'yesterday' +'%Y-%m-%dT%H:%M:%S')" >> "$GITHUB_OUTPUT"
- name: Test Local Action
uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
query: |
owner:sethrylan repo:issue-digest-test updated:>=${{ steps.last.outputs.day }}
title: 'Issue Radar since ${{ steps.last.outputs.day }}'

test-action-weekly-discussion:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: last
run: |
echo "monday=$(date -d 'last Monday' '+%Y-%m-%d')" >> "$GITHUB_OUTPUT"
echo "day=$(date -d 'yesterday' +'%Y-%m-%dT%H:%M:%S')" >> "$GITHUB_OUTPUT"
- name: Test Local Action
uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
intro: |
💾 This discussion was created by the [CI workflow](https://github.com/sethrylan/issue-digest-test/actions/workflows/ci.yml) as an automated test.
The title of the discussion will be create a new discussion each week, and every time the action runs a comment will be added with a list of issues changed in the last 24 hours.
query: |
owner:sethrylan repo:issue-digest-test updated:>=${{ steps.last.outputs.day }}
title: 'Issue Radar for Week of ${{ steps.last.outputs.monday }}'
Loading