All Projects â†’ azu â†’ set-env-to-github_env

azu / set-env-to-github_env

Licence: MIT license
A migration tools convert `::set-env`/`::set-output`/`::save-state` to $GITHUB_ENV/$GITHUB_OUTPUT/$GITHUB_STATE on GitHub Actions.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to set-env-to-github env

data-migrator
A declarative data-migration package
Stars: ✭ 15 (-44.44%)
Mutual labels:  migration
do-spaces-action
📦Upload directories/files to DigitalOcean Spaces via GitHub Actions. Supports package/library versioning.
Stars: ✭ 30 (+11.11%)
Mutual labels:  actions
azure-static-website-deploy
Deploys static website to Azure Storage
Stars: ✭ 18 (-33.33%)
Mutual labels:  actions
setup-lazarus
Set up your GitHub Actions workflow with a specific version of Lazarus
Stars: ✭ 29 (+7.41%)
Mutual labels:  actions
auth
A GitHub Action for authenticating to Google Cloud.
Stars: ✭ 567 (+2000%)
Mutual labels:  actions
release-changelog-builder-action
A GitHub action that builds your release notes / changelog fast, easy and exactly the way you want.
Stars: ✭ 515 (+1807.41%)
Mutual labels:  actions
Localizr
Localizr is a Tool that handles and automates the generation of localization files for IOS and Android so there will be only one source of truth for all of your localization strings.
Stars: ✭ 33 (+22.22%)
Mutual labels:  actions
action-lgtm-reaction
GitHub Action to send LGTM reaction
Stars: ✭ 62 (+129.63%)
Mutual labels:  actions
setup-meteor
Set up your GitHub Actions workflow with a specific version of Meteor.js
Stars: ✭ 17 (-37.04%)
Mutual labels:  actions
gcloud-login-action
A Github Action which can be used to authenticate with Google Cloud Container Registry
Stars: ✭ 21 (-22.22%)
Mutual labels:  actions
migration
TYPO3 Migration Framework for every kind of migration/imports from CLI (e.g. Templavoila to Gridelements, tt_news to news, etc...)
Stars: ✭ 52 (+92.59%)
Mutual labels:  migration
innersource-crawler
This project creates a repos.json that can be utilized by the SAP InnerSource Portal.
Stars: ✭ 24 (-11.11%)
Mutual labels:  actions
deploy-appengine
A GitHub Action that deploys source code to Google App Engine.
Stars: ✭ 184 (+581.48%)
Mutual labels:  actions
cigration
Citus shard migration tool
Stars: ✭ 28 (+3.7%)
Mutual labels:  migration
SuperGrate
💾 Get moving with Super Grate; a free & open source Windows Profile Migration & Backup Utility. Super Grate is a GUI (Graphical User Interface) that assists Microsoft's USMT (User State Migration Utility) in performing remote migrations over a network connection.
Stars: ✭ 91 (+237.04%)
Mutual labels:  migration
pr-compliance-action
Check PR for compliance on title, linked issues, and files changed
Stars: ✭ 151 (+459.26%)
Mutual labels:  actions
issue-action
github action for github issue
Stars: ✭ 58 (+114.81%)
Mutual labels:  actions
laravel-migrate-check
An artisan command to check for pending migrations with proper exit code
Stars: ✭ 53 (+96.3%)
Mutual labels:  migration
maintenance job
Mechanism to run testable one-off jobs in Rails at deploy time to manipulate data
Stars: ✭ 27 (+0%)
Mutual labels:  migration
composer-action
Docker and GitHub Actions for Composer
Stars: ✭ 34 (+25.93%)
Mutual labels:  actions

set-env-to-github_env Actions Status: test

A migration tools convert ::set-env to $GITHUB_ENV on GitHub Actions.

Supported Migration

  • echo "::set-env name={name}::{value}" → echo "{name}={value}" >> "$GITHUB_ENV"
  • echo "::set-output name={name}::{value}" → echo "{name}={value}" >> "$GITHUB_OUTPUT"
  • echo "::save-state name={name}::{value}" → echo "{name}={value}" >> "$GITHUB_STATE"

For more details, see GitHub blog and documentation.

TODO: This tool does not support ::add-path migration yet. If you are interesting in this, please see #2

Install

Install with npm:

npm install set-env-to-github_env

or Just use npx command in project root directory.

npx set-env-to-github_env

Require: Node.js 14+

Usage

Run command in project root directory.

Usage
  $ set-env-to-github_env

Examples
  $ set-env-to-github_env
  # migration ./github/workflows/*.{yml,yaml}

Example

Before

name: test
on: [push, pull_request]
jobs:
  test:
    name: "Test"
    runs-on: ubuntu-18.04
    steps:
      - name: set env for prod
        if: github.ref == 'refs/heads/main'
        run: |
          echo "::set-env name=FILE_ID::${FILE_ID}"
          echo "::set-env name=BUCKET_NAME::${BUCKET_NAME}"
        env:
          FILE_ID: 123456789012
          BUCKET_NAME: deploy-prod

After

name: test
on: [push, pull_request]
jobs:
  test:
    name: "Test"
    runs-on: ubuntu-18.04
    steps:
      - name: set env for prod
        if: github.ref == 'refs/heads/main'
        run: |
          echo "FILE_ID=${FILE_ID}" >> "$GITHUB_ENV"
          echo "BUCKET_NAME=${BUCKET_NAME}" >> "$GITHUB_ENV"
        env:
          FILE_ID: 123456789012
          BUCKET_NAME: deploy-prod

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].