Skip to content

Commit

Permalink
index.js: migration from lunar to oracular
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxython committed Nov 26, 2024
1 parent d3192ec commit d8c3d22
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:

jobs:
debug1:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Check commands
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Example:
```yml
jobs:
example:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Example
steps:
- uses: actions/checkout@v4
Expand Down
14 changes: 12 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,20 @@ async function installPkg(pkgname) {
}

async function start() {
let output = '';
const options = {};
options.listeners = {
stdout: (data: Buffer) => {
myOutput += data.toString();
}
};
await exec.exec("lsb_release", ["-r"], options);
console.log(output);

await installPkg("libarchive-tools");

await exec.exec("sudo su -c \"echo 'deb http://archive.ubuntu.com/ubuntu/ lunar universe' > /etc/apt/sources.list.d/lunar.list\"");
await exec.exec("sudo su -c \"echo 'deb-src http://archive.ubuntu.com/ubuntu/ lunar universe' >> /etc/apt/sources.list.d/lunar.list\"");
await exec.exec("sudo su -c \"echo 'deb http://archive.ubuntu.com/ubuntu/ oracular universe' > /etc/apt/sources.list.d/oracular.list\"");
await exec.exec("sudo su -c \"echo 'deb-src http://archive.ubuntu.com/ubuntu/ oracular universe' >> /etc/apt/sources.list.d/oracular.list\"");

await installPkg("pacman-package-manager");
}
Expand Down

0 comments on commit d8c3d22

Please sign in to comment.