Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

add reusable workflow for cleanup #10

Merged
merged 4 commits into from
Jan 12, 2022
Merged

add reusable workflow for cleanup #10

merged 4 commits into from
Jan 12, 2022

Conversation

vabarbosa
Copy link
Contributor

this PR creates a reusable workflow for cleaning up PR previews

Fixes: #9

@vabarbosa vabarbosa self-assigned this Jan 11, 2022
@CLAassistant
Copy link

CLAassistant commented Jan 11, 2022

CLA assistant check
All committers have signed the CLA.

Comment on lines 38 to 44
- name: GH deployment status (deactivate)
id: gh_deployment
uses: bobheadxi/deployments@v0.6.2
with:
step: deactivate-env
token: ${{ github.token }}
env: ${{ env.APP_NAME }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should deactivate it?
Because we use the same env for all the PRs.

Copy link
Member

@Tansito Tansito Jan 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good question, in the code that I was preparing for this I had the next line:
https://github.com/Qiskit/gh-actions/blob/clean-up-workflow/.github/workflows/code-engine-clean-up.yml#L44

But I'm not sure about which will be the final result for this.

Copy link
Member

@Tansito Tansito Jan 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little update about the change that we needed to merge after checking that this was not working as expected: #11

We can discuss the decision about the naming.

Co-authored-by: Abdón Rodríguez Davila <a@abdonrd.com>
Copy link
Member

@Tansito Tansito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@vabarbosa vabarbosa merged commit 39057b2 into main Jan 12, 2022
@vabarbosa vabarbosa deleted the va-cleanup-workflow branch January 12, 2022 14:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create resusable GitHub Action to clean up previews
4 participants