https://github.com/sanjacob/country-iso
GitHub action to get country ISO code from name
https://github.com/sanjacob/country-iso
Last synced: about 1 month ago
JSON representation
GitHub action to get country ISO code from name
- Host: GitHub
- URL: https://github.com/sanjacob/country-iso
- Owner: sanjacob
- License: bsd-3-clause
- Created: 2024-09-05T21:18:50.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-09-06T06:19:59.000Z (8 months ago)
- Last Synced: 2025-03-18T19:00:43.940Z (about 1 month ago)
- Language: JavaScript
- Size: 1.39 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Country ISO Lookup
## Inputs
### `name`
**Required** The name of the country, either in English or native.
## Outputs
### `iso-2`
ISO 3166-1 alpha-2 Code for the country entered.
### `iso-3`
ISO 3166-1 alpha-3 Code for the country entered.
### `name`
Official name of the country in English.
### `native`
Official name of the country in its own official language.
### `continent`
Continent code of the country.
## Notes
- This action uses no API (thankfully).
- Please do not expect magic.## Example
```yaml
- uses: sanjacob/country-code@v1
id: country
with:
name: United Kingdom- name: Get the code
run: echo "${{ steps.country.outputs.iso-2 }}"
```## License
This software is distributed under the [3-Clause BSD License][license].
[license]: LICENSE