Skip to content

cjs226/effx-event-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

effx-event-action 🔄

GitHub action for sending event data to effx

Usage

name: effx events
on: 
  pull_request:
    types: opened
  push:
    branches: master

jobs:
  build:
    name: "Create effx event"
    runs-on: ubuntu-latest
    env:
      EFFX_API_KEY: ${{ secrets.EFFX_API_KEY }}
      EFFX_SERVICE_NAME: Foo Service
    
    steps:
      - uses: actions/checkout@master

      # Pull requests being opened
      - name: Send pull requests to effx
        if: ${{ github.event_name == 'pull_request' }}
        uses: cjs226/effx-event-action@master
        with:
          name: "Pull request submitted by ${{ github.event.pull_request.user.login }}"
          desc: "${{ github.event.pull_request.title }} --> ${{ github.event.pull_request.html_url }}"
          service: ${{ env.EFFX_SERVICE_NAME }}

      # Commits to master
      - name: Send commits to master to effx
        if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
        uses: cjs226/effx-event-action@master
        with:
          name: "Push to master branch by ${{ github.event.head_commit.author.name }}"
          desc: "${{ github.event.head_commit.message }} --> ${{ github.event.head_commit.url }}"
          service: ${{ env.EFFX_SERVICE_NAME }}

Environment Variables

🔑 EFFX_API_KEY (required) - Your effx API key.

Workflow

  1. Add this action to your repo.
  2. Head over to the effx website, navigate to Account Settings and find your API key.
  3. Add your effx API key by
    • navigating to your repo's settings
    • selecting Secrets from the side bar
    • typing EFFX_API_KEY into the name field
    • pasting your effx API key into the value field
  4. The yml file for effx-event-action will live in .github/workflows.

About

GitHub Action for sending event data to effx

Resources

License

Stars

Watchers

Forks

Packages

No packages published