Commit Graph

5 Commits

Author SHA1 Message Date
Dongsu Park
c4a99b4376 .github: check for remote branches with git ls-remote
git show-ref in check_remote_branch is not working at all, because the
GitHub Actions checkout fetches a git repo with only depth 1 by default.
That means only main branch is available, not any other remote branches.
As a result, git show-ref always fails.

Fix that by checking for remote branches by git ls-remote.
2023-05-08 17:00:43 +02:00
Dongsu Park
0902d3cd64 .github: add correct changelog
Changelog directory is now located under flatcar scripts, not under
coreos overlay. Fix the location to add correct changelog to the git
commit.

Also use a correct path SDK_OUTER_TOPDIR in cleanup_repo.
2023-05-03 17:37:37 +02:00
Dongsu Park
b2e55c063a .github: skip touching open PRs when the remote branch exists
To avoid noise of touching existing PRs, check first if the remote
branch already exists. If that exists, skip creating or updating the PR.
2023-05-03 17:37:34 +02:00
Krzesimir Nowak
4352fc6323 .github: Fix changelog generation 2023-04-24 19:48:35 +02:00
Krzesimir Nowak
b6fc418fe5 .github: Port common update action code from old coreos-overlay 2023-04-17 17:23:44 +02:00