Skip to content

Commit

Permalink
Temporarily skip commit and PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
JohT committed Dec 21, 2023
1 parent 73dcae1 commit 886a3dd
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/native-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ jobs:
strategy:
matrix:
java: ['17']
env:
env:
CI_COMMIT_MESSAGE: Automated native image agent results (CI)
CI_COMMIT_AUTHOR: ${{ github.event.repository.name }} Continuous Integration
steps:
- name: Checkout git repository
uses: actions/checkout@v4
with:
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
# with:
# token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}

# Cache maven repository
- uses: actions/cache@v3
Expand All @@ -56,7 +56,7 @@ jobs:
with:
java-version: ${{ matrix.java }}
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
#github-token: ${{ secrets.GITHUB_TOKEN }}

# Build the native image of the application.
- name: Build native image with Maven
Expand Down Expand Up @@ -101,19 +101,20 @@ jobs:
if-no-files-found: error
retention-days: 5

# Commit and push the native image agent results
- name: Display environment variable "github.event_name"
run: echo "github.event_name=${{ github.event_name }}"
- name: Commit native image agent results
working-directory: showcase-quarkus-eventsourcing
# Only run when a pull request gets merged or a commit is pushed to the main branch
# git add parameters need to match paths-ignore parameters above
# Git pull before add/commit/push to reduce race conditions on parallel builds
if: github.event_name == 'push'
run: |
git config --global user.name '${{ env.CI_COMMIT_AUTHOR }}'
git config --global user.email '[email protected]'
git pull
git add ${{ env.native-image-agent-results-directory }}
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
# TODO Temoporarily skip commit
# # Commit and push the native image agent results
# - name: Display environment variable "github.event_name"
# run: echo "github.event_name=${{ github.event_name }}"
# - name: Commit native image agent results
# working-directory: showcase-quarkus-eventsourcing
# # Only run when a pull request gets merged or a commit is pushed to the main branch
# # git add parameters need to match paths-ignore parameters above
# # Git pull before add/commit/push to reduce race conditions on parallel builds
# if: github.event_name == 'push'
# run: |
# git config --global user.name '${{ env.CI_COMMIT_AUTHOR }}'
# git config --global user.email '[email protected]'
# git pull
# git add ${{ env.native-image-agent-results-directory }}
# git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
# git push

0 comments on commit 886a3dd

Please sign in to comment.