Skip to content

Commit

Permalink
Revert "Echo some settings"
Browse files Browse the repository at this point in the history
This reverts commit 4a5bd57.
  • Loading branch information
dadoonet committed Oct 23, 2023
1 parent 4a5bd57 commit 9099d48
Showing 1 changed file with 10 additions and 43 deletions.
53 changes: 10 additions & 43 deletions .github/workflows/update-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9099d48

Please sign in to comment.