Skip to content

Commit

Permalink
Add Issue Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 30, 2024
1 parent 3ab28b1 commit fa49508
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Github Pages

on:
issues:
- opened
- edited
- deleted
- transferred
- closed
- reopened
- labeled
- unlabeled

permissions:
contents: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout Build
uses: actions/checkout@v4

- name: node actions.js
run: node actions.js
env:
GITHUB_ISSUE: {{ github.event.issue }}
3 changes: 3 additions & 0 deletions actions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if (!process.env.GITHUB_ISSUE) throw new Error('GITHUB_ISSUE Env Var must be set')

console.error(process.env.GITHUB_ISSUE)

0 comments on commit fa49508

Please sign in to comment.