Fix copy workflow

This commit is contained in:
jorgectf
2024-02-16 16:39:40 +01:00
parent 5cb9c21e05
commit 334fda18ba

View File

@@ -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