diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 1258661..0b5fe2a 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -10,6 +10,7 @@ jobs: # required app-id: ${{ vars.APP_ID }} private-key: ${{ secrets.PRIVATE_KEY }} + owner: ${{ github.repository_owner }} - name: Get GitHub App User ID id: get-user-id run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT" @@ -19,7 +20,25 @@ jobs: git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]' git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>' # git commands like commit work using the bot user + - name: Checkout tools repo + uses: actions/checkout@v4 + with: + repository: ppc64le-cloud/test-brew + # path: test-brew - run: | - git add . - git commit -m "Auto-generated changes" - git push + touch "file_$(date +%Y-%m-%d).txt" + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ steps.app-token.outputs.token }} + commit-message: "hello" + title: "Update sample" + body: "sample body" + branch: update-lockfile-pr + # base: ${{ github.head_ref }} + # - run: | + # cd test-brew + # touch "file_$(date +%Y-%m-%d).txt" + # git add . + # git commit -m "Auto-generated file" + # git push diff --git a/README.md b/README.md index 5e61775..51cbfea 100644 --- a/README.md +++ b/README.md @@ -1 +1,4 @@ -# test-gha \ No newline at end of file +# test-gha + + +sample text