new_version_check.yml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. name: New version check
  2. on:
  3. # enabling manual trigger
  4. workflow_dispatch:
  5. # running every 6 hours
  6. schedule:
  7. - cron: '48 */6 * * *'
  8. jobs:
  9. check:
  10. # do not run in forks
  11. if: github.repository == 'ungoogled-software/ungoogled-chromium'
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Set maintainer groups
  15. id: maintainers
  16. run: |
  17. echo "all=@networkException" >> $GITHUB_OUTPUT
  18. echo "linux=@rany2" >> $GITHUB_OUTPUT
  19. echo "windows=" >> $GITHUB_OUTPUT
  20. echo "macos=" >> $GITHUB_OUTPUT
  21. - name: Get the latest Chromium version
  22. id: latest-version
  23. run: |
  24. echo "linux_version=$( curl -s https://omahaproxy.appspot.com/linux )" >> $GITHUB_OUTPUT
  25. echo "win_version=$( curl -s https://omahaproxy.appspot.com/win )" >> $GITHUB_OUTPUT
  26. echo "mac_version=$( curl -s https://omahaproxy.appspot.com/mac )" >> $GITHUB_OUTPUT
  27. - uses: actions/checkout@v3
  28. - name: Create Issue for all platforms
  29. if: |
  30. contains( steps.latest-version.outputs.win_version, steps.latest-version.outputs.mac_version ) &&
  31. contains( steps.latest-version.outputs.mac_version, steps.latest-version.outputs.linux_version )
  32. uses: dblock/create-a-github-issue@v3
  33. env:
  34. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  35. VERSION: ${{ steps.latest-version.outputs.linux_version }}
  36. PLATFORM: all platforms
  37. NOTIFY_MAINTAINERS: "${{ steps.maintainers.outputs.all }} ${{ steps.maintainers.outputs.linux }} ${{ steps.maintainers.outputs.windows }} ${{ steps.maintainers.outputs.macos }}"
  38. with:
  39. update_existing: false
  40. search_existing: all
  41. filename: .github/ISSUE_TEMPLATE/create-an--updating-to-chromium-x-x-x-x-.md
  42. - name: Create Issue for Linux
  43. if: |
  44. ! contains( steps.latest-version.outputs.win_version, steps.latest-version.outputs.mac_version ) ||
  45. ! contains( steps.latest-version.outputs.mac_version, steps.latest-version.outputs.linux_version )
  46. uses: dblock/create-a-github-issue@v3
  47. env:
  48. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  49. VERSION: ${{ steps.latest-version.outputs.linux_version }}
  50. PLATFORM: Linux
  51. NOTIFY_MAINTAINERS: "${{ steps.maintainers.outputs.all }} ${{ steps.maintainers.outputs.linux }}"
  52. with:
  53. update_existing: false
  54. search_existing: all
  55. filename: .github/ISSUE_TEMPLATE/create-an--updating-to-chromium-x-x-x-x-.md
  56. - name: Create Issue for macOS
  57. if: |
  58. ! contains( steps.latest-version.outputs.win_version, steps.latest-version.outputs.mac_version ) ||
  59. ! contains( steps.latest-version.outputs.mac_version, steps.latest-version.outputs.linux_version )
  60. uses: dblock/create-a-github-issue@v3
  61. env:
  62. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  63. VERSION: ${{ steps.latest-version.outputs.mac_version }}
  64. PLATFORM: macOS
  65. NOTIFY_MAINTAINERS: "${{ steps.maintainers.outputs.all }} ${{ steps.maintainers.outputs.macos }}"
  66. with:
  67. update_existing: false
  68. search_existing: all
  69. filename: .github/ISSUE_TEMPLATE/create-an--updating-to-chromium-x-x-x-x-.md
  70. - name: Create Issue for Windows
  71. if: |
  72. ! contains( steps.latest-version.outputs.win_version, steps.latest-version.outputs.mac_version ) ||
  73. ! contains( steps.latest-version.outputs.mac_version, steps.latest-version.outputs.linux_version )
  74. uses: dblock/create-a-github-issue@v3
  75. env:
  76. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  77. VERSION: ${{ steps.latest-version.outputs.win_version }}
  78. PLATFORM: Windows
  79. NOTIFY_MAINTAINERS: "${{ steps.maintainers.outputs.all }} ${{ steps.maintainers.outputs.windows }}"
  80. with:
  81. update_existing: false
  82. search_existing: all
  83. filename: .github/ISSUE_TEMPLATE/create-an--updating-to-chromium-x-x-x-x-.md