Skip to content

Commit 334fda1

Browse files
committed
Fix copy workflow
1 parent 5cb9c21 commit 334fda1

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/copy-to-bughalla.yml

+18-8
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,22 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
14-
- run: gh auth setup-git
15-
env:
16-
GITHUB_TOKEN: ${{ secrets.BUGHALLA_TOKEN }}
13+
with:
14+
token: ${{ secrets.BUGHALLA_TOKEN }}
15+
fetch-depth: 0
1716

18-
- run: rm -rf .github/workflows/copy-to-bughalla.yml
19-
- run: git remote add fork https://github.com/bughalla/codeql-actions
20-
- run: git fetch fork
21-
- run: git push fork master --force
17+
- run: |
18+
rm -rf .github/workflows/copy-to-bughalla.yml
19+
git remote set-url --push origin [email protected]:bughalla/codeql-actions
20+
git config user.name 'github-actions[bot]'
21+
git config user.email 'github-actions[bot]@users.noreply.github.com'
22+
git add -v .
23+
git commit -m 'Actions: Add patch'
24+
25+
- name: Push changes
26+
uses: ad-m/github-push-action@35284cf030a5836cb567a7bf1b39ebafbfae5f4a
27+
with:
28+
repository: bughalla/codeql-actions
29+
github_token: ${{ secrets.BUGHALLA_TOKEN }}
30+
branch: ${{ github.ref }}
31+
force: true

0 commit comments

Comments
 (0)