From 03460b4dedab7d4ffb172f2433fd36becb5297e5 Mon Sep 17 00:00:00 2001 From: cswimr Date: Mon, 21 Oct 2024 16:58:05 -0400 Subject: [PATCH] few minor actions workflow changes --- .forgejo/workflows/actions.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/actions.yaml b/.forgejo/workflows/actions.yaml index 2793a9f..31fbe43 100644 --- a/.forgejo/workflows/actions.yaml +++ b/.forgejo/workflows/actions.yaml @@ -1,13 +1,13 @@ name: Actions on: push: - branches: - - 'master' + pull_request: workflow_dispatch: jobs: - build_documentation: + docs: name: Build Documentation + if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' runs-on: docker container: www.coastalcommits.com/cswimr/actions:docs steps: @@ -39,14 +39,14 @@ jobs: echo "${YELLOW}Deploying to ${BLUE}Meli ${YELLOW}on branch ${GREEN}$CI_ACTION_REF_NAME_SLUG${YELLOW}...\n" - npx -p "@getmeli/cli" meli upload ./site --url "https://pages.coastalcommits.com" --site "${{ vars.MELI_SITE_ID }}" --token "${{ secrets.MELI_SECRET }}" --release "$CI_ACTION_REF_NAME_SLUG/${{ env.GITHUB_SHA }}" --branch "$CI_ACTION_REF_NAME_SLUG" + npx -p "@getmeli/cli" meli upload ./site --url "https://pages.coastalcommits.com" --site "${{ vars.MELI_SITE_ID }}" --token "${{ secrets.MELI_TOKEN }}" --release "$CI_ACTION_REF_NAME_SLUG/${{ env.GITHUB_SHA }}" --branch "$CI_ACTION_REF_NAME_SLUG" echo "\n${YELLOW}Deployed to ${BLUE}Meli ${YELLOW}on branch ${GREEN}$CI_ACTION_REF_NAME_SLUG${YELLOW}!" echo "${GREEN}https://$CI_ACTION_REF_NAME_SLUG.docs.galacticfactory.cc/" env: GITEA_TOKEN: ${{ secrets.COASTALCOMMITSTOKEN }} - build_export_files: + export: name: Build Export Files runs-on: docker container: catthehacker/ubuntu:act-latest @@ -102,6 +102,7 @@ jobs: autotagger: name: Autotagger + if: github.event_name == 'push' && github.ref_name == 'master' runs-on: docker container: catthehacker/ubuntu:act-latest steps: