-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 4a5bd57.
- Loading branch information
Showing
1 changed file
with
10 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,50 +11,17 @@ jobs: | |
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
packages: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
token: ${{ github.token }} | ||
- name: Send pull-request | ||
run: | | ||
BRANCH_NAME="auto/update-files" | ||
echo "BRANCH_NAME: $BRANCH_NAME" | ||
echo "GITHUB_REF: ${{github.event.pull_request.head.ref}}" | ||
echo "GITHUB_REPOSITORY: ${{github.event.pull_request.head.repo.full_name}}" | ||
echo "SECRET_PAT: ${{ secrets.PAT }}" | ||
# - name: Send pull-request | ||
# run: | | ||
# BRANCH_NAME="auto/update-files" | ||
# | ||
# # Setup the committers identity. | ||
# git config user.email "[email protected]" | ||
# git config user.name "David Pilato" | ||
# | ||
# # Create a new feature branch for the changes. | ||
# git checkout -b $BRANCH_NAME | ||
# | ||
# # Run the maven update. | ||
# mvn -B generate-resources | ||
# | ||
# # Commit the changes and push the feature branch to origin | ||
# git add . | ||
# git commit -m "Automatically update versions" | ||
# git push origin $BRANCH_NAME | ||
# | ||
# # Store the PAT in a file that can be accessed by the | ||
# # GitHub CLI. | ||
# echo "${{ secrets.PAT }}" > token.txt | ||
# | ||
# # Authorize GitHub CLI for the current repository and | ||
# # create a pull-requests containing the updates. | ||
# gh auth login --with-token < token.txt | ||
# gh pr create \ | ||
# --body "" \ | ||
# --title "Update all the files with new versions" \ | ||
# --head "$BRANCH_NAME" \ | ||
# --base "${{ github.event.pull_request.head.ref }}" | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- name: Update resources with Maven | ||
run: mvn -B generate-resources | ||
- name: Update files if needed | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
default_author: github_actions | ||
message: Automatically update versions |