Commit Graph

35 Commits

Author SHA1 Message Date
Jia Yuan Lo b6c3cb98ce
fix(ci): {up,down}load-artifact@v4 on generate bootstrap archive (#18975) 2024-01-14 23:51:02 +08:00
dependabot[bot] 7e2af7650b
build(deps): bump actions/upload-artifact from 3 to 4 (#18727) 2024-01-01 15:17:50 +00:00
dependabot[bot] 015a10be76
build(deps): bump actions/download-artifact from 3 to 4 (#18726) 2024-01-01 15:17:08 +00:00
dependabot[bot] 089a1eccbb build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 17:24:58 +05:30
Yaksh Bariya c2039d6d11
chore,ci(bootstrap_archives,docker_image): do not run on forks 2023-05-23 12:35:16 +05:30
Yaksh Bariya 2c7b4c0127
ci(bootstrap_archives): update upload-release-action and do not generate
checksums

upload-release-action@v4.1.0 now handles checksum by itself. No need to
take it in our hands
2023-01-04 19:48:11 +05:30
dependabot[bot] ab4bdbc78e build(deps): bump termux/upload-release-action from 4.0.0 to 4.0.2
Bumps [termux/upload-release-action](https://github.com/termux/upload-release-action) from 4.0.0 to 4.0.2.
- [Release notes](https://github.com/termux/upload-release-action/releases)
- [Changelog](https://github.com/termux/upload-release-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/termux/upload-release-action/compare/v4.0.0...v4.0.2)

---
updated-dependencies:
- dependency-name: termux/upload-release-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-30 11:39:58 +00:00
Yaksh Bariya 9a526efb84
Revert "ci(bootstrap_archives): upload-release-action v4.0.1"
I should have checked that there is no nodejs18 available for now. Need
to start reading documentation :) Lots of chaos for the day

This reverts commit 0e67438e38.
2022-12-28 20:46:38 +05:30
Yaksh Bariya 0e67438e38
ci(bootstrap_archives): upload-release-action v4.0.1 2022-12-28 20:39:23 +05:30
Yaksh Bariya 217c8657c2
fixup,ci(bootstrao_archives): generate sha256sums file 2022-12-28 17:23:32 +05:30
Yaksh Bariya 1c73b38c3e
cibootstrap_archives): do not include sha256 sums in release body
Although convenient, this seems to have been broken after moving to new
environment files of GitHub Actions. I have no idea how GitHub actually
parses the file, so I don't know what hack, and how will allow us to
have sha256sums on the release body again. In case anyone knows, feel
free to open up a PR.

Also, for the checksums generations, I'm planning to move this to
'upload-release-action' action only. See
https://github.com/termux/upload-release-action/issues/4
2022-12-28 17:05:25 +05:30
Yaksh Bariya 7cee2f3d37
ci(bootstrap_archives): do not escape multiline output
It seems to be causing issues. Let's see if disabling it helps. If not,
I'll open up a new issue to address the same, cause I am not sure of
what's the correct way of fixing it
2022-12-28 16:45:20 +05:30
Yaksh Bariya 35dc6584c8
ci(bootstrap_archives): use v4.0.0 of upload-release-action 2022-12-28 16:34:40 +05:30
Yaksh Bariya 3759c26c84
chore,ci(bootstrap_archives): do not use deprecated set-output
See
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-12-27 15:54:27 +05:30
agnostic-apollo e9dae011e2 fixed(bootstrap_archives.yml): Do not use natural sort while generating bootstraps.sha256sum 2022-09-17 08:22:55 +05:00
babaric-dev e1b1509c6e fixed(bootstrap_archives.yml): fix invalid file parameter for bootstraps github release upload job broken in 4af58fc0
Related pull request #11960 and #11956
2022-09-17 08:10:16 +05:00
babaric-dev 4af58fc016 chore,ci(bootstrap_archives): Add sha256sum to releases 2022-09-16 23:07:02 +08:00
Alex fdead17156
chore,ci: use explicit permissions for GitHub Actions
Quoted from #11735:
This commit adds explicit [permissions
section](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions)
to workflows. This is a security best practice because by default
workflows run with [extended set of
permissions](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token)
(except from `on: pull_request` [from external
forks](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)).
By specifying any permission explicitly all others are set to none. By
using the principle of least privilege the damage a compromised workflow
can do (because of an
[injection](https://securitylab.github.com/research/github-actions-untrusted-input/)
or compromised third party tool or action) is restricted.\r\nIt is
recommended to have [most strict permissions on the top
level](https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions)
and grant write permissions on [job
level](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs)
case by case.

Co-Authored-By: Alex <93376818+sashashura@users.noreply.github.com>
2022-08-28 08:59:01 +05:30
agnostic-apollo aecb8bd19d
Fixed(bootstrap_archives): Fix prevent parallel runs implemented in 332e1550
The workflow is not valid. .github/workflows/bootstrap_archives.yml (Line: 9, Col: 10): Unexpected type of value '', expected type: String.
2022-05-29 05:28:33 +05:00
Yaksh Bariya 332e155068
chore,ci(bootstrap_archives): prevent parallel runs
Can lead to race conditions
2022-05-22 14:56:04 +05:30
Henrik Grimler cc441d5dbf
CI: bootstraps: append +apt-android-7 to bootstrap archives
When they are generated from master branch.  This is done since
termux-app now comes in two flavours, one for android >= 5 and one for
android >= 7.
2022-04-28 22:03:18 +02:00
Yaksh Bariya 52c8fd0a41
ci(bootstrap_archives): use specific version 2022-04-28 19:08:59 +05:30
Yaksh Bariya 5edddd95c0
chore,ci(bootstrap_archives): Use Termux's fork of svenstaro/upload-release-action 2022-04-28 15:03:02 +05:30
Yaksh Bariya 029da6a2dd
ci: use v3 of actions/{checkout,download-artifact,upload-artifact} 2022-04-26 19:41:35 +05:30
Leonid Pliushch 4f7e3a11f2
github actions: fix tagging in bootstrap_archives.yml 2021-09-17 23:39:35 +03:00
Leonid Pliushch 33f4b5ca5d
github actions: escape multiline output in bootstrap_archives.yml 2021-09-17 22:17:26 +03:00
Leonid Pliushch 4ee3dd0051
github actions: fetch full git history for bootstrap_archives.yml 2021-09-17 22:06:18 +03:00
Leonid Pliushch ac317d7202
github actions: attach checksums to bootstrap archives release info 2021-09-17 22:02:25 +03:00
Leonid Pliushch 2b63f877c5
github actions: fix typo in bootstrap_archives.yml 2021-09-17 21:57:42 +03:00
Leonid Pliushch e2402dfceb
github actions: set job dependencies in bootstrap_archives.yml 2021-09-17 21:52:48 +03:00
Leonid Pliushch 399cc87aa9
github actions: use separate job for publishing bootstraps 2021-09-17 21:49:08 +03:00
Leonid Pliushch 642d8e5616
github actions: fix missing id for step in bootstrap_archives.yml 2021-09-17 21:46:21 +03:00
Leonid Pliushch 008fc88e7c
github actions: publish releases for bootstrap archives workflow 2021-09-17 21:42:04 +03:00
Leonid Pliushch 8806f8c86f
github actions: fix syntax in bootstrap_archives.yml 2021-09-17 21:08:13 +03:00
Leonid Pliushch 8e5fbb77ef
github actions: add basic workflow for building bootstraps 2021-09-17 21:06:06 +03:00