Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
chore(ci): add github action to get GitLab Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
profclems committed Jan 6, 2021
1 parent 1c17a7d commit 76485c2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/gitlab-issues-to-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "GitLab Sync"
on: [push]
# schedule:
# - cron: "*/5 * * * *"
# will be reverted back to schedule

jobs:
issues:
runs-on: ubuntu-latest
if: github.repository == 'profclems/glab' # do not run on forks
env:
GITLAB_TOKEN: ${{ secrets.BOT_GITLAB_TOKEN }}
NO_PROMPT: 1

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Add GitLab Remote
run: git remote add gitlab git@gitlab.com:profclems/glab.git

- name: Get GitLab Issues
run: |
glab api /projects/:id/issues --paginate >> issues.json
cat issues.json

0 comments on commit 76485c2

Please sign in to comment.