Skip to content

Commit

Permalink
Change: Use v3 actions in READMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernricks committed Jul 12, 2023
1 parent 3aa314e commit e1c9507
Show file tree
Hide file tree
Showing 30 changed files with 50 additions and 50 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,29 @@ We offer several actions for linting, formatting, building and testing packages/

```yml
- name: Install JavaScript and the project [npm]
uses: greenbone/actions/install-npm@v2
uses: greenbone/actions/install-npm@v3
with:
version: 3.9
token: ${{ secrets.FOO_BAR }}
- name: Install and check Lint and Format in JavaScript Projects [npm]
uses: greenbone/actions/lint-npm@v2
uses: greenbone/actions/lint-npm@v3
with:
version: 3.9
token: ${{ secrets.FOO_BAR }}
- name: Install, Build and Test JavaScript Projects [npm]
uses: greenbone/actions/test-npm@v2
uses: greenbone/actions/test-npm@v3
with:
version: 3.9
token: ${{ secrets.FOO_BAR }}
- name: Run coverage for javascript
uses: greenbone/actions/coverage-js@v2
uses: greenbone/actions/coverage-js@v3
```
### GoLang
```yml
- name: Check Lint and Format in GoLang Projects
uses: greenbone/actions/lint-golang@v2
uses: greenbone/actions/lint-golang@v3
with:
version: "1.18"
generate: go generate # mocks, docs, etc
Expand All @@ -54,7 +54,7 @@ We offer several actions for linting, formatting, building and testing packages/
```yml
- name: upload documentation coverage to codecov.io for C Lang repository
uses: greenbone/actions/doc-coverage-clang@v2
uses: greenbone/actions/doc-coverage-clang@v3
```
## Language independent Actions
Expand All @@ -78,7 +78,7 @@ Update license header supporting many different filetypes
```yml
- name: Run update header
uses: greenbone/actions/update-header@v2
uses: greenbone/actions/update-header@v3
with:
github-user: ${{ secrets.FOO_BAR }}
github-user-mail: foo@bar.baz
Expand All @@ -91,12 +91,12 @@ SHA256 file or GPG signature generation
```yml
- name: Create a sha256sums file for the foo directory
uses: greenbone/actions/hashsums@v2
uses: greenbone/actions/hashsums@v3
with:
directory: ./foo

- name: Create a GPG signature
uses: greenbone/actions/signature@v2
uses: greenbone/actions/signature@v3
with:
gpg-key: ${{ secrets.FOO_BAR }}
gpg-passphrase: ${{ secrets.FOO_BAZ }}
Expand Down
4 changes: 2 additions & 2 deletions admin-bypass/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: allow admin users bypassing protection on <target> branch on <repository>
uses: greenbone/actions/admin-bypass@v2
uses: greenbone/actions/admin-bypass@v3
with:
allow: "true"
branch: <target>
repository: <repository>
- name: disable bypassing protection on <target> branch on <repository> for admin users
uses: greenbone/actions/admin-bypass@v2
uses: greenbone/actions/admin-bypass@v3
with:
allow: "false"
branch: <target>
Expand Down
4 changes: 2 additions & 2 deletions backport-pull-request/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Backport Pull Request
uses: greenbone/actions/backport-pull-request@v2
uses: greenbone/actions/backport-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
```
Expand All @@ -41,7 +41,7 @@ workflow file of the backport action.

```yaml
- name: Backport Pull Request
uses: greenbone/actions/backport-pull-request@v2
uses: greenbone/actions/backport-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
config: pyproject.toml
Expand Down
2 changes: 1 addition & 1 deletion check-version/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Check Versioning
runs-on: ubuntu-latest
steps:
- uses: greenbone/actions/check-version@v2
- uses: greenbone/actions/check-version@v3
```
## Action Configuration
Expand Down
2 changes: 1 addition & 1 deletion checkout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Do Something
runs-on: ubuntu-latest
steps:
- uses: greenbone/checkout@v2
- uses: greenbone/checkout@v3
id: checkout
- run: |
echo ${{ steps.checkout.outputs.sha }}
Expand Down
2 changes: 1 addition & 1 deletion container-build-push-3rd-gen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Container build and push 3rd gen
uses: greenbone/actions/container-build-push-3rd-gen@v2
uses: greenbone/actions/container-build-push-3rd-gen@v3
with:
image-url: my/app
image-labels: my-label
Expand Down
2 changes: 1 addition & 1 deletion container-build-push-docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Container build and push docker.io
uses: greenbone/actions/container-build-push-docker@v2
uses: greenbone/actions/container-build-push-docker@v3
with:
image-url: my/app
image-labels: my-labels
Expand Down
2 changes: 1 addition & 1 deletion container-build-push-generic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Container build and push docker.io
uses: greenbone/actions/container-build-push-generic@v2
uses: greenbone/actions/container-build-push-generic@v3
with:
image-url: docker.io/my-image
image-labels: my-labels
Expand Down
2 changes: 1 addition & 1 deletion container-build-push-ghcr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Container build and push ghcr.io
uses: greenbone/actions/container-build-push-ghcr@v2
uses: greenbone/actions/container-build-push-ghcr@v3
with:
image-url: my/app
image-labels: my-labels
Expand Down
4 changes: 2 additions & 2 deletions conventional-commits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Report Conventional Commits
uses: greenbone/actions/conventional-commits@v2
uses: greenbone/actions/conventional-commits@v3
```
```yml
Expand All @@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Report Conventional Commits
uses: greenbone/actions/conventional-commits@v2
uses: greenbone/actions/conventional-commits@v3
```
## Action Configuration
Expand Down
2 changes: 1 addition & 1 deletion coverage-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Create Coverage Report
uses: greenbone/actions/coverage-python@v2
uses: greenbone/actions/coverage-python@v3
```
## Action Configuration
Expand Down
2 changes: 1 addition & 1 deletion dependency-review/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Dependency Review'
uses: greenbone/actions/dependency-review@v2
uses: greenbone/actions/dependency-review@v3
```
6 changes: 3 additions & 3 deletions download-artifact/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download All Artifacts
uses: greenbone/actions/download-artifact@v2
uses: greenbone/actions/download-artifact@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: "foo/bar"
workflow: deploy.yml
- name: Download Single Artifact
uses: greenbone/actions/download-artifact@v2
uses: greenbone/actions/download-artifact@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: "foo/bar"
workflow: deploy.yml
name: artifact-a
- name: Ignore non-existing Artifact
uses: greenbone/actions/download-artifact@v2
uses: greenbone/actions/download-artifact@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: "foo/bar"
Expand Down
2 changes: 1 addition & 1 deletion helm-build-push/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build and push chart
uses: greenbone/actions/helm-build-push@v2
uses: greenbone/actions/helm-build-push@v3
with:
chart-name: Chart folder name
registry_user: Registry username
Expand Down
2 changes: 1 addition & 1 deletion helm-version-upgrade/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: run helm-version-upgrade
uses: greenbone/actions/helm-version-upgrade@v2
uses: greenbone/actions/helm-version-upgrade@v3
with:
chart-path: ${{ github.workspace }}/charts/<YOUR-CHART>
chart-version: <NEW-VERSION> e.g 0.1.1-a1
Expand Down
2 changes: 1 addition & 1 deletion is-latest-tag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: greenbone/actions/is-latest-tag@v2
- uses: greenbone/actions/is-latest-tag@v3
id: latest
- name: Do something
if: steps.latest.outputs.is-latest-tag == 'true'
Expand Down
2 changes: 1 addition & 1 deletion lint-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: Setup Python and lint project
runs-on: ubuntu-latest
steps:
- uses: greenbone/actions/lint-python@v2
- uses: greenbone/actions/lint-python@v3
with:
packages: my_project tests
```
Expand Down
8 changes: 4 additions & 4 deletions lock-branch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: lock <target> branch on <repository>
uses: greenbone/actions/lock-branch@v2
uses: greenbone/actions/lock-branch@v3
with:
lock: "true"
branch: <target>
repository: <repository>
- name: unlock <target> branch on <repository>
uses: greenbone/actions/lock-branch@v2
uses: greenbone/actions/lock-branch@v3
with:
lock: "false"
branch: <target>
Expand All @@ -41,11 +41,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: lock default branch
uses: greenbone/actions/lock-branch@v2
uses: greenbone/actions/lock-branch@v3
with:
lock: "true"
- name: unlock default branch
uses: greenbone/actions/lock-branch@v2
uses: greenbone/actions/lock-branch@v3
with:
lock: "false"
```
Expand Down
2 changes: 1 addition & 1 deletion mattermost-notify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- self-hosted
- self-hosted-generic
steps:
- uses: greenbone/actions/mattermost-notify@v1
- uses: greenbone/actions/mattermost-notify@v3
with:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL }}
Expand Down
2 changes: 1 addition & 1 deletion mypy-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: Setup and lint project
runs-on: ubuntu-latest
steps:
- uses: greenbone/actions/mypy-python@v2
- uses: greenbone/actions/mypy-python@v3
with:
packages: my_project tests
```
Expand Down
4 changes: 2 additions & 2 deletions poetry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
setup-python-project:
name: Setup Python and install dependencies
steps:
- uses: greenbone/actions/poetry@v2
- uses: greenbone/actions/poetry@v3
```
```yaml
Expand All @@ -29,7 +29,7 @@ jobs:
setup-python-project:
name: Setup Python and install main dependencies only
steps:
- uses: greenbone/actions/poetry@v2
- uses: greenbone/actions/poetry@v3
with:
without-dev: "true"
```
Expand Down
2 changes: 1 addition & 1 deletion pypi-upload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Build and publish to PyPI
uses: greenbone/actions/pypi-upload@v2
uses: greenbone/actions/pypi-upload@v3
with:
pypi-token: ${{ secrets.PYPI_TOKEN }}
```
Expand Down
2 changes: 1 addition & 1 deletion release-type/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
name: Determine Release Type and Ref
runs-on: ubuntu-latest
steps:
- uses: greenbone/actions/release-type@v2
- uses: greenbone/actions/release-type@v3
id: release
with:
release-type-input: ${{ inputs.release-type }}
Expand Down
8 changes: 4 additions & 4 deletions release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Run release actions with release type
uses: greenbone/actions/release@v2
uses: greenbone/actions/release@v3
with:
github-user: ${{ secrets.FOO_BAR }}
github-user-mail: foo@bar.baz
Expand All @@ -114,7 +114,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Run release actions with release version
uses: greenbone/actions/release@v2
uses: greenbone/actions/release@v3
with:
github-user: ${{ secrets.FOO_BAR }}
github-user-mail: foo@bar.baz
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
steps:
- name: Run release actions with release version
id: release
uses: greenbone/actions/release@v2
uses: greenbone/actions/release@v3
with:
release-type: "patch"
versioning-scheme: "semver"
Expand All @@ -152,7 +152,7 @@ jobs:
run: |
gh release upload ${{ steps.release.outputs.git-release-tag }} some_files/*
- name: Sign all release files
uses: greenbone/actions/sign-release-files@v2
uses: greenbone/actions/sign-release-files@v3
with:
gpg-key: ${{ secrets.GPG_KEY }}
gpg-fingerprint: ${{ secrets.GPG_FINGERPRINT }}
Expand Down
2 changes: 1 addition & 1 deletion sbom-upload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
contents: write
steps:
- name: 'SBOM upload'
uses: greenbone/actions/sbom-upload@v2
uses: greenbone/actions/sbom-upload@v3
```
2 changes: 1 addition & 1 deletion set-github-user/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Setup
runs-on: ubuntu-latest
steps:
- uses: greenbone/actions/setup-github-user@v2
- uses: greenbone/actions/setup-github-user@v3
with:
user: ${{ vars.user }}
mail: ${{ vars.mail }}
Expand Down
2 changes: 1 addition & 1 deletion setup-pontos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Setup Pontos
runs-on: ubuntu-latest
steps:
- uses: greenbone/actions/setup-pontos@v2
- uses: greenbone/actions/setup-pontos@v3
```
## Action Configuration
Expand Down
Loading

0 comments on commit e1c9507

Please sign in to comment.