Files and Directories for Actions
1) JavaScript Action: Dosya ve Klasör Yapısı
Örnek Dizilim
/my-js-action
├── action.yml # Aksiyonun tanımlama (metadata) dosyası
├── index.js # Aksiyonun asıl kodu (JS)
├── package.json # NPM bağımlılıklarını tanımladığın dosya
├── node_modules/ # (install sonrası oluşabilir)
└── README.md # Nasıl kullanılır, açıklamaname: "My JavaScript Action" description: "A description of your action" inputs: my-input: description: "Input to use in the action" required: true default: "default input value" outputs: my-output: description: "Output from the action" runs: using: "node16" main: "index.js"
const core = require('@actions/core'); async function run() { try { const myInput = core.getInput('my-input'); // ...some logic... core.setOutput('my-output', 'some-value'); } catch (err) { core.setFailed(err.message); } } run();
Özet (JavaScript Action)
2) Docker Container Action: Dosya ve Klasör Yapısı
Örnek Dizilim
Özet (Docker Container Action)
Sonuç
Last updated