Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.37 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.37 KB

javscript-action status

Default Project Board Action

Intended to be used to set a default board for all new issues to automatically be added to. Currently only works with Project (Classic), not modern GitHub projects.

Usage

name: "Default Project"

on:
  issues:
    types:
      - opened

jobs:
  add_to_project:
    runs-on: ubuntu-latest
    steps:
      - uses: skeet70/default-project-board-action@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          repository: ${{ github.repository }}
          issue: ${{ github.event.issue.number }}
          project: 1

project could be set to any project number, found in the slug when you view your project on github.

Package for distribution

GitHub Actions will run the entry point from the action.yml. Packaging assembles the code into one file that can be checked in to Git, enabling fast and reliable execution and preventing the need to check in node_modules.

Actions are run from GitHub repos. Packaging the action will create a packaged action in the dist folder.

Run package

npm run package

Since the packaged index.js is run from the dist folder.

git add dist