XN137 opened a new pull request, #4851:
URL: https://github.com/apache/iceberg/pull/4851

   ```
   - use ubuntu-20.04 explicitly in anticipation of the next ubuntu release
   - upgrade to actions/cache@v3
   - upgrade to actions/checkout@v3
   - upgrade to actions/labeler@v4
   - upgrade to actions/setup-java@v3
   - upgrade to actions/setup-python@v3
   - upgrade to actions/upload-artifact@v3
   ```
   
   this brings various improvements for each action, see changelogs:
   https://github.com/actions/cache#v3
   https://github.com/actions/checkout/#checkout-v3
   https://github.com/actions/setup-java#v2-vs-v1
   https://github.com/actions/setup-python#whats-new
   https://github.com/actions/labeler/releases
   https://github.com/actions/upload-artifact/releases
   
   a common change across all actions is that they are now based on node16 LTS 
since node12 LTS is going EOL later this year.
   
   we explicitly use the `ubuntu-20.04` runner, since `ubuntu-latest` will get 
updated to `22.04` in the future, and it should be preferable to make this 
upgrade intentionally, instead of automatically.
   
   all updates were done with `sed` apart from `setup-java` which needs another 
property (`zulu` distribution was the default in earlier versions):
   
https://github.com/actions/setup-java/blob/main/docs/switching-to-v2.md#java-distribution
 
   
   before:
   ```
   ~/code/iceberg$ rg --no-filename -o 'uses:.*$' .github | sort | uniq -c
         9 uses: actions/cache@v2
        16 uses: actions/checkout@v2
         1 uses: actions/labeler@v2
        12 uses: actions/setup-java@v1
         2 uses: actions/setup-python@v2
         9 uses: actions/upload-artifact@v2
   ```
   
   after:
   ```
   /code/iceberg$ rg --no-filename -o 'uses:.*$' .github | sort | uniq -c
         9 uses: actions/cache@v3
        16 uses: actions/checkout@v3
         1 uses: actions/labeler@v4
        12 uses: actions/setup-java@v3
         2 uses: actions/setup-python@v3
         9 uses: actions/upload-artifact@v3
   ```
   
   sanity check for the manual modification:
   ```
   ~/code/iceberg$ rg "distribution: zulu" .github | wc -l
   12
   ~/code/iceberg$ rg "setup-java" .github | wc -l
   12
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to