This GitHub Action will create a new project on packet.com. Projects allow you to organize groups of resources and collaborators within your organization.
With this action you can automate your workflow by provisioning projects using the packet.com api.
To use this action you will first need an authentication token which can be generated through the Packet Portal.
Packet.com is NOT a free service, so you will be asked to provide billing information. This action will NOT have access to that information.
# File: .github/workflows/workflow.yml
on: [push]
name: Packet Project Sample
jobs:
create-new-project:
runs-on: ubuntu-latest
name: Creating new packet project
steps:
- uses: mattdavis0351/packet-create-project@v1
id: project
with:
API_key: ${{ secrets.PACKET_API_KEY }}
org_name: My Packet org # if not supplied will use default org for API key
project_name: My-new-packet-project
Input | Description | Default | Required |
---|---|---|---|
API_key |
Packet.com API authorization token | No key supplied | ✅ |
org_name |
Organization to place new project in, uses default user org if not specified | default | ❌ |
project_name |
Desired name for new project | GitHub Actions | ✅ |
This action supplies the following outputs which can be consumed by subsequent actions in the current job.
Output | Description |
---|---|
project_id |
ID of the newly created project returned as a string |
project_name |
Name of the newly created project returned as a string |