Skip to content

Commit

Permalink
workflows: Add github action workflows to check pull requests.
Browse files Browse the repository at this point in the history
Include follow 4 workflows:
* backup-to-gitlab
  chatOps
  check-code
  cla-check

Link: https://github.com/deepin-community/.github
Signed-off-by: WangYuli <[email protected]>
  • Loading branch information
Avenger-285714 committed May 9, 2024
1 parent f989c57 commit d806731
Show file tree
Hide file tree
Showing 7 changed files with 535 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/backup-to-gitlab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: backup to gitlab
on: [push]

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
backup-to-gitlabwh:
uses: deepin-community/.github/.github/workflows/backup-to-gitlabwh.yml@master
secrets:
BRIDGETOKEN: ${{ secrets.BRIDGETOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/backup-to-gitlabwh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: backup to gitlab
workflow_call:
secrets:
BRIDGETOKEN:
required: true

jobs:
backup-to-gitlab:
if: github.repository_owner == 'deepin-community'
name: backup-to-gitlab
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: "linuxdeepin/jenkins-bridge-client"
path: jenkins-bridge-client

- name: Install Client
run: |
cd $GITHUB_WORKSPACE/jenkins-bridge-client
go build .
sudo install -Dvm755 jenkins-bridge-client -t /usr/bin/
- name: Trigger sync
id: generate-runid
run: |
echo "::set-output name=RUN_ID::$(jenkins-bridge-client triggerSync --token '${{ secrets.BRIDGETOKEN }}')"
- name: Print log
run: |
jenkins-bridge-client printLog --token "${{ secrets.BRIDGETOKEN }}" --runid "${{ steps.generate-runid.outputs.RUN_ID }}"
Loading

0 comments on commit d806731

Please sign in to comment.