Skip to content

qameta/gitlab-trigger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Gitlab Trigger Action

Inputs

endpoint - (Optional) Endpoint to Gitlab. e.g. https://gitlab.example.com. Leave blanc for default
token - Your Gitlab token. Make sure token has rights to launch pipelines
projectId - ProjectId of your pipeline repo
envs - (Optional) Environment variables you want to pass to Gitlab
ref - (Optional) Git branch of target pipeline repo

Example

name: Build

on:
  push:
    branches:
    - '*'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: qameta/gitlab-trigger@master
      with:
        token: ${{ secrets.GITLAB_TOKEN }}
        projectId: "154854"
        envs: VERSION=${{ steps.version.outputs.name }},ARCH=amd64