Bump actions/checkout from 3 to 4 #666
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: PR label | |
on: | |
pull_request: | |
types: [labeled] | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: false | |
jobs: | |
get-featurenet-name: | |
name: Get featurenet name | |
runs-on: ubuntu-20.04 | |
outputs: | |
name: ${{ steps.get-argocd-featurenet-app-name.outputs.name }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Get branch name and commit SHA | |
id: get-ref-properties | |
uses: Cardinal-Cryptography/github-actions/get-ref-properties@v2 | |
- name: Get argocd featurenet app name | |
id: get-argocd-featurenet-app-name | |
shell: bash | |
env: | |
# yamllint disable-line rule:line-length | |
FE_NAME: ${{ steps.get-ref-properties.outputs.branch-name-for-argo }} | |
run: | | |
name_local=${{ env.FE_NAME }} | |
echo "name=$name_local" >> $GITHUB_OUTPUT | |
create-featurenet: | |
if: github.event.label.name == 'trigger:create-featurenet' | |
needs: [get-featurenet-name] | |
name: Create featurenet | |
uses: ./.github/workflows/featurenet-create-from-branch.yml | |
with: | |
featurenet-name: ${{ needs.get-featurenet-name.outputs.name }} | |
secrets: inherit | |
delete-featurenet: | |
if: > | |
(github.event.label.name == 'trigger:delete-featurenet') || | |
( | |
github.event.action == 'closed' && | |
!contains(github.event.pull_request.labels.*.name, 'state:deleted-featurenet') && | |
contains(github.event.pull_request.labels.*.name, 'state:created-featurenet') | |
) | |
needs: [get-featurenet-name] | |
name: Delete featurenet | |
uses: ./.github/workflows/featurenet-delete.yml | |
with: | |
featurenet-name: ${{ needs.get-featurenet-name.outputs.name }} | |
secrets: inherit | |
run-e2e-button-contracts-tests: | |
if: github.event.label.name == 'trigger:run-button-e2e-tests' | |
name: Run e2e button game contract tests | |
uses: ./.github/workflows/_run-button-e2e-tests.yml | |
with: | |
deploy: false | |
secrets: inherit |