-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows: Add github action workflows to check pull requests.
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
1 parent
f989c57
commit d806731
Showing
7 changed files
with
535 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |
Oops, something went wrong.