mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Fix copy workflow
This commit is contained in:
26
.github/workflows/copy-to-bughalla.yml
vendored
26
.github/workflows/copy-to-bughalla.yml
vendored
@@ -10,12 +10,22 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- run: gh auth setup-git
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.BUGHALLA_TOKEN }}
|
||||
with:
|
||||
token: ${{ secrets.BUGHALLA_TOKEN }}
|
||||
fetch-depth: 0
|
||||
|
||||
- run: rm -rf .github/workflows/copy-to-bughalla.yml
|
||||
- run: git remote add fork https://github.com/bughalla/codeql-actions
|
||||
- run: git fetch fork
|
||||
- run: git push fork master --force
|
||||
- run: |
|
||||
rm -rf .github/workflows/copy-to-bughalla.yml
|
||||
git remote set-url --push origin git@github.com:bughalla/codeql-actions
|
||||
git config user.name 'github-actions[bot]'
|
||||
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
git add -v .
|
||||
git commit -m 'Actions: Add patch'
|
||||
|
||||
- name: Push changes
|
||||
uses: ad-m/github-push-action@35284cf030a5836cb567a7bf1b39ebafbfae5f4a
|
||||
with:
|
||||
repository: bughalla/codeql-actions
|
||||
github_token: ${{ secrets.BUGHALLA_TOKEN }}
|
||||
branch: ${{ github.ref }}
|
||||
force: true
|
||||
Reference in New Issue
Block a user