fastly / compute-actions

GitHub Actions for building on Fastly Compute.
https://www.fastly.com/blog/introducing-github-actions-for-compute-edge-a-new-resource-to-help-ship-code
MIT License
40 stars 9 forks source link

support for --version flag in deploy action #24

Closed nodirnasirov closed 2 years ago

nodirnasirov commented 2 years ago

In my cicd pipeline I am using deploy action, but I need it to deploy by cloning active version, not the latest one. CLI command for it would be fastly compute deploy --version=active. Unfortunately flag is missing in fastly deploy github action. Current step in my yaml:

- name: Deploy Compute@Edge Package
        uses: fastly/compute-actions/deploy@v2
        with:
          service_id: "my-service-id"
          comment: "foo bar"
        env:
          FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}

Would be great to have:

- name: Deploy Compute@Edge Package
        uses: fastly/compute-actions/deploy@v2
        with:
          service_id: "my-service-id"
          version: "active"
          comment: "foo bar"
        env:
          FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}