-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,880 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: build-copy-tag-action | ||
concurrency: | ||
group: build-copy-tag-action | ||
on: | ||
push: | ||
branches: | ||
- copy-tag | ||
paths: | ||
- copy-tag/src/**/* | ||
- copy-tag/package*.json | ||
- copy-tag/*.js | ||
|
||
permissions: | ||
contents: write | ||
|
||
env: | ||
AUTHOR_EMAIL: [email protected] | ||
AUTHOR_NAME: 'Github Actions' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- uses: actions/setup-node@main | ||
with: | ||
node-version: 20 | ||
|
||
- name: node modules | ||
working-directory: ./copy-tag | ||
run: npm ci | ||
|
||
- name: build | ||
working-directory: ./copy-tag | ||
run: npm run build | ||
|
||
- name: commit builded action | ||
run: | | ||
if git status | grep 'copy-tag/dist/' -q; | ||
then | ||
git config --global user.email "${AUTHOR_EMAIL}" | ||
git config --global user.name "${AUTHOR_NAME}" | ||
git add ./copy-tag/dist | ||
git commit -m "built action" | ||
git push origin ${{ github.ref }}:${{ github.ref }} | ||
fi |
4 changes: 2 additions & 2 deletions
4
.github/workflows/build.yaml → .github/workflows/build-main-action.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: build | ||
name: build main action | ||
concurrency: | ||
group: build | ||
group: build-main-action | ||
on: | ||
push: | ||
branches: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: 'copy tag' | ||
description: 'add tag for exist image:tag' | ||
inputs: | ||
registry: | ||
description: 'registry' | ||
required: true | ||
registry-user: | ||
description: 'registry' | ||
required: true | ||
registry-password: | ||
description: 'registry' | ||
required: true | ||
from-tag: | ||
description: 'from tag' | ||
required: true | ||
to-tag: | ||
description: 'to tag' | ||
required: true | ||
images: | ||
description: 'list images in Yaml format' | ||
required: true | ||
|
||
runs: | ||
using: 'node20' | ||
main: 'dist/main.js' |
Oops, something went wrong.