From c952efedf2a57dcb84f5ea5cbc160c1f2be23b5e Mon Sep 17 00:00:00 2001 From: Bryce Thorup Date: Wed, 21 Aug 2024 07:28:30 -0600 Subject: [PATCH] init --- .gitea/workflows/push_to_main.yaml | 16 ++++++++++++++++ README.md | 2 +- action.sh | 1 + action.yaml | 8 ++++++++ 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/push_to_main.yaml create mode 100755 action.sh create mode 100644 action.yaml diff --git a/.gitea/workflows/push_to_main.yaml b/.gitea/workflows/push_to_main.yaml new file mode 100644 index 0000000..d4b219c --- /dev/null +++ b/.gitea/workflows/push_to_main.yaml @@ -0,0 +1,16 @@ +name: Push to main + +on: + push: + branches: [main] + +jobs: + Reset-Version-Tag: + runs-on: debian-bullseye + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - run: git tag -d v1 || true + - run: git push --delete origin v1 || true + - run: git tag v1 + - run: git push --tags diff --git a/README.md b/README.md index 8f13a96..9d98291 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # create_listmonk_campaign -create a listmonk campaign if the name of the branch being merged includes "post_XXXXXX" \ No newline at end of file +create a listmonk campaign if the name of the branch being merged includes "post_XXXXXX" diff --git a/action.sh b/action.sh new file mode 100755 index 0000000..62a6ba9 --- /dev/null +++ b/action.sh @@ -0,0 +1 @@ +echo $(git rev-parse --abbrev-ref HEAD) diff --git a/action.yaml b/action.yaml new file mode 100644 index 0000000..9172f57 --- /dev/null +++ b/action.yaml @@ -0,0 +1,8 @@ +name: npm-publish +description: "create a listmonk campaign if the name of the branch being merged includes \"post_XXXXXX\"" +author: "Bryce Thorup" +runs: + using: "composite" + steps: + - run: $GITHUB_ACTION_PATH/action.sh + shell: bash