diff --git a/.github/workflows/branch-main.yml b/.github/workflows/branch-main.yml index a1dceca..7824341 100644 --- a/.github/workflows/branch-main.yml +++ b/.github/workflows/branch-main.yml @@ -3,7 +3,7 @@ name: main branch on: push: branches: - - fix-ansible-version + - main jobs: run-molecule-tests: @@ -23,28 +23,28 @@ jobs: uses: ./.github/workflows/reusable-check-version.yml with: compare-versions: false -# deploy-galaxy: -# needs: [run-molecule-tests, check-version] -# uses: ./.github/workflows/reusable-galaxy-deploy.yml -# secrets: -# api-token: ${{ secrets.GALAXY_API_KEY }} -# create-git-tag: -# runs-on: ubuntu-22.04 -# needs: [deploy-galaxy, check-version] -# env: -# CURRENT_GALAXY_VERSION: ${{ needs.check-version.outputs.current-galaxy-version }} -# steps: -# - name: Print tag version -# run: | -# echo "Tag version: ${CURRENT_GALAXY_VERSION}" -# - name: Create Tag -# uses: actions/github-script@v6 -# with: -# script: | -# const {CURRENT_GALAXY_VERSION} = process.env -# github.rest.git.createRef({ -# owner: context.repo.owner, -# repo: context.repo.repo, -# ref: `refs/tags/${CURRENT_GALAXY_VERSION}`, -# sha: context.sha -# }) + deploy-galaxy: + needs: [run-molecule-tests, check-version] + uses: ./.github/workflows/reusable-galaxy-deploy.yml + secrets: + api-token: ${{ secrets.GALAXY_API_KEY }} + create-git-tag: + runs-on: ubuntu-22.04 + needs: [deploy-galaxy, check-version] + env: + CURRENT_GALAXY_VERSION: ${{ needs.check-version.outputs.current-galaxy-version }} + steps: + - name: Print tag version + run: | + echo "Tag version: ${CURRENT_GALAXY_VERSION}" + - name: Create Tag + uses: actions/github-script@v6 + with: + script: | + const {CURRENT_GALAXY_VERSION} = process.env + github.rest.git.createRef({ + owner: context.repo.owner, + repo: context.repo.repo, + ref: `refs/tags/${CURRENT_GALAXY_VERSION}`, + sha: context.sha + })