Merge remote-tracking branch 'origin/main' #72
This file contains hidden or 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
| name: Update Commit Hash | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.ref }} | |
| - name: Get commit hash | |
| id: commit_hash | |
| run: echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
| - name: Update commit hash | |
| run: echo -n "${{ env.commit_hash }}" > commit_hash.txt | |
| - name: Commit and push changes | |
| uses: stefanzweifel/git-auto-commit-action@v4 | |
| with: | |
| commit_message: Update commit hash | |
| file_pattern: commit_hash.txt | |
| commit_user_name: GitHub Action | |
| commit_user_email: [email protected] | |
| branch: main |