{"id":13474611,"url":"https://github.com/appleboy/gitlab-ci-action","last_synced_at":"2025-08-26T07:08:11.786Z","repository":{"id":65158922,"uuid":"173040638","full_name":"appleboy/gitlab-ci-action","owner":"appleboy","description":"GitHub Action that trigger gitlab CI build.","archived":false,"fork":false,"pushed_at":"2024-10-21T15:17:26.000Z","size":1451,"stargazers_count":65,"open_issues_count":0,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-30T02:48:09.674Z","etag":null,"topics":["github-actions","gitlab","gitlab-ci"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/trigger-gitlab-ci-job","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appleboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-28T04:24:42.000Z","updated_at":"2024-10-21T15:17:29.000Z","dependencies_parsed_at":"2024-11-08T18:35:11.778Z","dependency_job_id":null,"html_url":"https://github.com/appleboy/gitlab-ci-action","commit_stats":{"total_commits":60,"total_committers":3,"mean_commits":20.0,"dds":"0.033333333333333326","last_synced_commit":"4e3d4dfa3796dfc68c261ecc474b691563680684"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fgitlab-ci-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fgitlab-ci-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fgitlab-ci-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fgitlab-ci-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleboy","download_url":"https://codeload.github.com/appleboy/gitlab-ci-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247412488,"owners_count":20934868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","gitlab","gitlab-ci"],"created_at":"2024-07-31T16:01:13.550Z","updated_at":"2025-04-06T19:13:38.894Z","avatar_url":"https://github.com/appleboy.png","language":"Dockerfile","funding_links":[],"categories":["Community Resources","Dockerfile"],"sub_categories":["Deployment"],"readme":"# 🚀 GitLab CI for GitHub Actions\n\n[![trigger gitlab job](https://github.com/appleboy/gitlab-ci-action/actions/workflows/ci.yml/badge.svg)](https://github.com/appleboy/gitlab-ci-action/actions/workflows/ci.yml)\n\n[GitHub Action](https://github.com/features/actions) for trigger [gitlab-ci](https://about.gitlab.com/gitlab-ci) jobs. See Trigger pipelines by [using the API](https://docs.gitlab.com/ee/ci/triggers/index.html).\n\n## Usage\n\nTrigger New GitLab CI Job.\n\n```yml\nname: trigger gitlab job\non: [push]\njobs:\n\n  build:\n    name: Build\n    runs-on: ubuntu-latest\n    steps:\n    - name: trigger Job\n      uses: ghcr.io/appleboy/gitlab-ci-action@v1.3.0\n      with:\n        host: \"http://example.com\"\n        token: ${{ secrets.TOKEN }}\n        project_id: 100\n\n```\n\n## GitLab Setting\n\nSee the detail documentation for [Triggering pipelines through the API](https://docs.gitlab.com/ee/ci/triggers/). Create your access token by going to your `User Settings ➔ Access Tokens` under Access Tokens.\n\n![token](./images/user_token.png)\n\nHow to get the project ID? going to your project’s `Settings ➔ General` under General project.\n\n![projectID](./images/setting.png)\n\n## Example\n\nSpecific the GitLab host URL:\n\n```yml\n- name: trigger Job\n  uses: ghcr.io/appleboy/gitlab-ci-action@v1.3.0\n  with:\n    host: \"http://example.com\"\n    token: ${{ secrets.TOKEN }}\n    debug: true\n    project_id: 100\n```\n\nOther specific `branch` or `tag` name:\n\n```diff\n  - name: trigger Job\n    uses: ghcr.io/appleboy/gitlab-ci-action@v1.3.0\n    with:\n      host: \"http://example.com\"\n      token: ${{ secrets.TOKEN }}\n      debug: true\n      project_id: 100\n+     ref: v1.0.0\n```\n\nPass the variables to the triggered pipeline:\n\n```diff\n  - name: trigger Job\n    uses: ghcr.io/appleboy/gitlab-ci-action@v1.3.0\n    with:\n      host: \"http://example.com\"\n      token: ${{ secrets.TOKEN }}\n      debug: true\n      project_id: 100\n+     variables: key1=value01,key2=value02\n```\n\nWait for pipeline to complete, default as `false`:\n\n```diff\n  - name: trigger Job\n    uses: ghcr.io/appleboy/gitlab-ci-action@v1.3.0\n    with:\n      host: \"http://example.com\"\n      token: ${{ secrets.TOKEN }}\n      debug: true\n      project_id: 100\n+     wait: true\n```\n\nTimeout waiting for pipeline to complete, default as `1h`:\n\n```diff\n  - name: trigger Job\n    uses: ghcr.io/appleboy/gitlab-ci-action@v1.3.0\n    with:\n      host: \"http://example.com\"\n      token: ${{ secrets.TOKEN }}\n      debug: true\n      project_id: 100\n+     wait: true\n+     timeout: 60s\n```\n\nInterval waiting for pipeline to complete, default as `5s`:\n\n```diff\n  - name: trigger Job\n    uses: ghcr.io/appleboy/gitlab-ci-action@v1.3.0\n    with:\n      host: \"http://example.com\"\n      token: ${{ secrets.TOKEN }}\n      debug: true\n      project_id: 100\n+     wait: true\n+     interval: 10s\n```\n\nAllow insecure SSL connections, default as `false`:\n\n```diff\n  - name: trigger Job\n    uses: ghcr.io/appleboy/gitlab-ci-action@v1.3.0\n    with:\n      host: \"http://example.com\"\n      token: ${{ secrets.TOKEN }}\n      debug: true\n      project_id: 100\n+     insecure: true\n```\n\nShow output status\n\n```diff\n  - name: trigger Job\n    uses: ghcr.io/appleboy/gitlab-ci-action@v1.3.0\n+   id: trigger\n    with:\n      host: \"http://example.com\"\n      token: ${{ secrets.TOKEN }}\n      debug: true\n      project_id: 100\n+     wait: true\n+     interval: 1s\n\n  - name: print output\n    run: |\n      echo ${{ steps.trigger.outputs.id }}\n      echo ${{ steps.trigger.outputs.sha }}\n      echo ${{ steps.trigger.outputs.web_url }}\n      echo ${{ steps.trigger.outputs.status }}\n```\n\n## Input variables\n\n* host - Optional. gitlab-ci base url, default as `https://gitlab.com`\n* token - Required. A unique trigger token can be obtained when [adding a new trigger](https://docs.gitlab.com/ee/ci/triggers/index.html).\n* project_id - Required. project id.\n* ref - Optional. Triggers can be used to force a pipeline rerun of a specific ref (`branch` or `tag`) with an API call. Default as `main`.\n* insecure - Optional. Allow insecure SSL connections. Default as `false`.\n* variables - Optional. Variables to be passed to the triggered pipeline. Default as empty. example: `key1=value01,key2=value02`.\n* debug - Optional. show the debug message.\n* wait - Optional. wait for pipeline to complete. Default as `false`.\n* timeout - Optional. timeout waiting for pipeline to complete. Default as `1h`.\n* interval - Optional. interval waiting for pipeline to complete. Default as `5s`.\n\n## Output variables\n\n* id - The ID of the triggered pipeline.\n* sha - The sha of the triggered pipeline.\n* web_url - The web URL of the triggered pipeline.\n* status - The status of the triggered pipeline. (`running`, `pending`, `success`, `failed`, `canceled`, `skipped`, `manual`, `scheduled`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fgitlab-ci-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleboy%2Fgitlab-ci-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fgitlab-ci-action/lists"}