Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyLTY committed Jun 21, 2024
1 parent a7776cd commit 0654b24
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Verify Push Permissions
on:
workflow_dispatch:

jobs:
verify-push:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Create a test file
run: echo "This is a test file to verify push permissions." > push_test.txt

- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit changes
run: |
git add push_test.txt
git commit -m "Add push_test.txt to verify push permissions"
- name: Print remote URL
run: git remote -v

- name: Push changes
run: |
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git push origin HEAD:main

0 comments on commit 0654b24

Please # to comment.