Skip to content

Commit

Permalink
πŸ”€ Merge pull request #10 from jyje/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jyje authored Apr 20, 2024
2 parents 9425ebf + fa063ab commit 7a52c40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,7 @@ on:
- "v*"

jobs:
init:
runs-on: ubuntu-latest
outputs:
is_valid_branch: ${{ steps.check_branch.outputs.is_valid }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Check if the current tag is in the main branch
id: check_branch
run: |
if git branch --contains tags/${{ github.ref_name }} | grep -q "main"; then
echo "is_valid_branch=true" >> $GITHUB_OUTPUT
else
echo "is_valid_branch=false" >> $GITHUB_OUTPUT
fi
build:
needs: init
if: ${{ needs.init.outputs.is_valid_branch == 'true' }}
build-and-release:
runs-on: ubuntu-latest

steps:
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ docker pull ghcr.io/jyje/ansible

### Using Specific Version

You can use a specific version of the Ansible Docker image by specifying the version tag. For example, to use version `9.2.0`, use the following command:
You can use a specific version of the Ansible Docker image by specifying the version tag. For example, to use version `v9.4.0`, use the following command:

```bash
docker pull ghcr.io/jyje/ansible:9.2.0
docker pull ghcr.io/jyje/ansible:v9.4.0
```


Expand Down

0 comments on commit 7a52c40

Please sign in to comment.