diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6fd7848 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 + +