|
1 | 1 | name: review
|
2 |
| - |
| 2 | + |
3 | 3 | on:
|
4 | 4 | pull_request:
|
5 | 5 | types: [opened, synchronize]
|
6 |
| - |
| 6 | + |
7 | 7 | jobs:
|
8 | 8 | review:
|
9 | 9 | timeout-minutes: 30
|
10 | 10 | runs-on: ubuntu-latest
|
11 |
| - |
| 11 | + |
12 | 12 | steps:
|
13 | 13 | - name: checkout
|
14 |
| - uses: actions/checkout@v1 |
15 |
| - |
| 14 | + uses: actions/checkout@v2 |
| 15 | + with: |
| 16 | + ref: ${{ github.head_ref }} |
| 17 | + token: ${{ secrets.GPR_TOKEN }} |
| 18 | + fetch-depth: '' |
| 19 | + |
| 20 | + - name: post-checkout |
| 21 | + run: git fetch --prune --unshallow |
| 22 | + |
| 23 | + - name: action-configuration-autoupdate |
| 24 | + id: actions_action_configuration_autoupdate |
| 25 | + uses: avides/actions-action-configuration-autoupdate@v1 |
| 26 | + with: |
| 27 | + token: ${{ secrets.GPR_TOKEN }} |
| 28 | + actions-configuration-files: plain-docker-application/nightly.yml,plain-docker-application/release.yml,plain-docker-application/review.yml |
| 29 | + source-repository: ${{ secrets.ACTIONS_CONFIG_AUTOUPDATE_REPO }} |
| 30 | + |
| 31 | + - uses: stefanzweifel/git-auto-commit-action@v4 |
| 32 | + with: |
| 33 | + file_pattern: .github/workflows/*.yml |
| 34 | + commit_user_name: ${{ secrets.ACTIONS_CONFIG_AUTOUPDATE_USER }} |
| 35 | + commit_user_email: ${{ secrets.ACTIONS_CONFIG_AUTOUPDATE_EMAIL }} |
| 36 | + commit_author: ${{ secrets.ACTIONS_CONFIG_AUTOUPDATE_AUTHOR }} |
| 37 | + commit_message: Update GitHub Action configuration |
| 38 | + |
| 39 | + - name: action-configuration-updated |
| 40 | + if: ${{ steps.actions_action_configuration_autoupdate.outputs.updated }} |
| 41 | + run: exit 1; |
| 42 | + |
16 | 43 | - name: project-version-check
|
17 | 44 | id: project_version_check
|
18 | 45 | uses: avides/actions-project-version-check@v1
|
19 | 46 | with:
|
20 | 47 | token: ${{ secrets.GITHUB_TOKEN }}
|
21 | 48 | file-to-check: version.txt
|
22 |
| - additional-files-to-check: README.md |
23 |
| - |
| 49 | + |
24 | 50 | - name: build-image
|
25 | 51 | env:
|
26 | 52 | PROJECT_VERSION: ${{ steps.project_version_check.outputs.version }}
|
|
0 commit comments