Skip to content

Commit 810c134

Browse files
authored
GitHub Actions: switch utility workflows to ubuntu-slim image (#2053)
* Switch pull request labeler to ubuntu-slim image * Switch mirror workflow to ubuntu-slim image This also switches the workflow to another mirroring action (https://github.com/marketplace/actions/mirror-to) because previous doesn't work with ubuntu-slim currently.
1 parent fbf87fa commit 810c134

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
1313
labeler:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-slim
1515
steps:
1616
- name: on new pull request
1717
if: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.opened == true || github.event.pull_request.reopened == true }}

.github/workflows/mirror.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,33 @@ on: [push, delete, workflow_dispatch]
55
jobs:
66
mirror:
77
if: github.repository == 'OpenXRay/xray-16'
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-slim
99
steps:
1010
- uses: actions/checkout@v6
1111
with:
1212
fetch-depth: 0
1313

1414
- name: Bitbucket.org
15-
uses: pixta-dev/repository-mirroring-action@v1.1.1
15+
uses: Xottab-DUTY/git-mirror@v1.0.0
1616
with:
17-
target_repo_url: git@bitbucket.org:OpenXRay/xray-16.git
18-
ssh_private_key: ${{ secrets.RABOTYAGA_BITBUCKET_PRIVATE_SSH_KEY }}
17+
target: git@bitbucket.org:OpenXRay/xray-16.git
18+
password: ${{ secrets.RABOTYAGA_BITBUCKET_PRIVATE_SSH_KEY }}
19+
push_args: "--tags --prune --force"
20+
refspec: "refs/remotes/origin/*:refs/heads/*"
1921

2022
- name: gitflic.ru
21-
uses: pixta-dev/repository-mirroring-action@v1.1.1
23+
uses: Xottab-DUTY/git-mirror@v1.0.0
2224
with:
23-
target_repo_url: git@gitflic.ru:openxray/xray-16.git
24-
ssh_private_key: ${{ secrets.GITFLIC_PRIVATE_SSH_KEY }}
25+
target: git@gitflic.ru:openxray/xray-16.git
26+
password: ${{ secrets.GITFLIC_PRIVATE_SSH_KEY }}
27+
push_args: "--tags --prune --force"
28+
refspec: "refs/remotes/origin/*:refs/heads/*"
2529

2630
- name: abf.io
2731
continue-on-error: true
28-
uses: pixta-dev/repository-mirroring-action@v1.1.1
32+
uses: Xottab-DUTY/git-mirror@v1.0.0
2933
with:
30-
target_repo_url: git@abf.io:openxray/xray-16.git
31-
ssh_private_key: ${{ secrets.ABF_IO_PRIVATE_SSH_KEY }}
34+
target: git@abf.io:openxray/xray-16.git
35+
password: ${{ secrets.ABF_IO_PRIVATE_SSH_KEY }}
36+
push_args: "--tags --prune --force"
37+
refspec: "refs/remotes/origin/*:refs/heads/*"

0 commit comments

Comments
 (0)